laipower/wp-content/plugins/cloudron/cloudron.php

24 lines
734 B
PHP
Raw Normal View History

<?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');