You can remove or disable update warnings for themes and all plugins on your WordPress site using the code below.
Code to Remove WordPress Update Notifications
- Open the theme functions.php file. (/public_html/wp-content/themes/YOUR THEME/functions.php)
- Add the following WordPress notification alert removal code before the ?> code at the bottom line.
- Save your functions.php file and upload it to the server.
function remove_core_updates(){ global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); } add_filter('pre_site_transient_update_core','remove_core_updates'); add_filter('pre_site_transient_update_plugins','remove_core_updates'); add_filter('pre_site_transient_update_themes','remove_core_updates');
When you add the code, you will turn off both theme update notification alerts and all plugin update notifications.
If you want to re-enable update notifications, simply remove the code you added.