📅  最后修改于: 2022-03-11 14:54:45.126000             🧑  作者: Mango
// hide update notifications
add_filter('pre_site_transient_update_core','oepl_remove_core_updates'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','oepl_remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','oepl_remove_core_updates'); //hide updates for all themes
function oepl_remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}