modified plugin `Cloudron Managed WordPress` version 1.0.0

This commit is contained in:
KawaiiPunk 2020-09-25 14:44:22 +00:00 committed by Gitium
parent 3053837189
commit 7b5257d924
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
/**
* @package Cloudron_Managed_WordPress
* @version 1.0.0
*/
/*
Plugin Name: Cloudron Managed WordPress
Plugin URI: https://cloudron.io/store/org.wordpress.cloudronapp.html
Description: This plugin disables core updates of WordPress. Cloudron team will test new version of WordPress and will push package updates.
Author: Cloudron team
Version: 1.0.0
Author URI: http://cloudron.io
*/
// https://carlofontanos.com/disable-update-notifications-in-wordpress-admin/
function cloudron_remove_wp_core_updates() {
global $wp_version;
return(object) array('last_checked' => time(),'version_checked' => $wp_version);
}
// Core Notifications
add_filter('pre_site_transient_update_core','cloudron_remove_wp_core_updates');