隐藏、禁止、删除Wordpress自带的更新和仪表盘

Wordpress 更新有点频繁,最恶心的地方是,一旦更新,很多东西都已经没有了,所以最好禁止wordpress更新,仪表盘我个人不喜欢它,所以隐藏,看官们可以选择保留

function example_remove_dashboard_widgets() {
        // Globalize the metaboxes array, this holds all the widgets for wp-admin
	global $wp_meta_boxes;
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
}
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );
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);
function annointed_admin_bar_remove() {
	global $wp_admin_bar;
	/* Remove their stuff */
	$wp_admin_bar->remove_menu('wp-logo');
}
add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0);
add_filter('admin_title', 'wpdx_custom_admin_title', 10, 2);
function wpdx_custom_admin_title($admin_title, $title){
	return $title.' ‹ '.' 这里可以填写title名字';
}
add_filter('pre_site_transient_update_core', create_function('$a', "return null;")); // 关闭核心提示
add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;")); // 关闭插件提示
add_filter('pre_site_transient_update_themes', create_function('$a', "return null;")); // 关闭主题提示
add_filter( 'automatic_updater_disabled', '__return_true' );//禁止自动更新
remove_action('admin_init', '_maybe_update_core'); // 禁止检查更新
remove_action('admin_init', '_maybe_update_plugins'); // 禁止更新插件
remove_action('admin_init', '_maybe_update_themes'); // 禁止更新主题
add_filter( 'wpcf7_validate_configuration', '__return_false' );
add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );

用上函数包含隐藏、禁止、删除Wordpress自带的更新和仪表盘,还有修改title名字