xxxxxxxxxx
// Disable WordPress core update notifications
remove_action('admin_notices', 'update_nag', 3);
// Disable plugin update notifications
remove_action('load-update-core.php', 'wp_update_plugins');
add_filter('pre_site_transient_update_plugins', '__return_null');
// Disable theme update notifications
remove_action('load-update-core.php', 'wp_update_themes');
add_filter('pre_site_transient_update_themes', '__return_null');
// Disable WordPress core automatic updates
add_filter('pre_site_transient_update_core', '__return_null');
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
xxxxxxxxxx
// Add this in your wp-config.php file.
define('DISALLOW_FILE_MODS',true);
xxxxxxxxxx
// Add this to your theme's functions.php file
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );