使用此代码创建您自己的插件,或将其放入主题函数中。php
add_action(\'init\', \'remove_update_notification\', 1)
function remove_update_notification() {
if (!current_user_can(\'manage_network\')) { // checks to see if current user can update plugins
add_action( \'init\', create_function( \'$a\', "remove_action( \'init\', \'wp_version_check\' );" ), 2 );
add_filter( \'pre_option_update_core\', create_function( \'$a\', "return null;" ) );
}
}