michelventura
10/1/2017 - 5:43 AM

Disable update nag

<?php /*
Plugin Name: Stop updates nag
Description: Stops the nagging
Version: 0.1
*/
add_action('admin_menu', create_function('$a', "remove_action('load_plugins.php', 'wp_update_plugins');"));
add_filter('pre_option_update_plugins', create_function('$a', "return null;"));
add_action('init', create_function('$a', "remove_action('init', 'wp_version_check');"));
add_filter('pre_option_update_core', create_function('$a', "return null;"));
?>