WordPres在w搭建其它站点时就要永久删除WordPresg的推送通知,但许多都长期不解决问题,那么WordPress如何移除文件和插件的更新提示?
就能将中间的代码块运用到主题上的一个 functions.php 列表中,最好连引注一起复制,方便日后写作使用代码:
// 移除wordpress核心更新提示
add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) );
// 移除wordpress插件更新提示
remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ );
add_filter( ‘pre_site_transient_update_plugins’, create_function( ‘$b’, “return null;” ) );