wp更新到4.8.1,顺便屏蔽无用项

wp更新的确实够快,但是文件在一直增大。以后会不会越来越大。
把代码直接扔到functions.php里,保存即可,可以看到后台的所有wordpress更新提示,wordpress字样都屏蔽显示.

add_filter( 'manage_users_columns', array('RRHE','registerdate'));
add_action( 'manage_users_custom_column', array('RRHE','registerdate_columns'), 15, 3);
add_filter( 'manage_users_sortable_columns', array('RRHE','registerdate_column_sortable') );
add_filter( 'request', array('RRHE','registerdate_column_orderby') );
function remove_screen_options(){ return false;}
add_filter('screen_options_show_screen', 'remove_screen_options');
add_filter( 'contextual_help', 'wpse50723_remove_help', 999, 3 );
function wpse50723_remove_help($old_help, $screen_id, $screen){
$screen->remove_help_tabs();
return $old_help;
}
function change_footer_admin () {return '';}
add_filter('admin_footer_text', 'change_footer_admin', 9999);
function change_footer_version() {return '';}
add_filter( 'update_footer', 'change_footer_version', 9999);
add_filter ('pre_site_transient_update_core', '__return_null');
remove_action ('load-update-core.php', 'wp_update_plugins');
add_filter ('pre_site_transient_update_plugins', '__return_null');

remove_action ('load-update-core.php', 'wp_update_themes');
add_filter ('pre_site_transient_update_themes', '__return_null');

4个评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注