hide all updates from wordpress

Solutions on MaxInterview for hide all updates from wordpress by the best coders in the world

showing results for - "hide all updates from wordpress"
Silvana
16 Nov 2020
1// hide update notifications
2add_filter('pre_site_transient_update_core','oepl_remove_core_updates'); //hide updates for WordPress itself
3add_filter('pre_site_transient_update_plugins','oepl_remove_core_updates'); //hide updates for all plugins
4add_filter('pre_site_transient_update_themes','oepl_remove_core_updates'); //hide updates for all themes
5function oepl_remove_core_updates(){
6	global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
7}