wordpress去除主题function经常用到

//WordPress后台右下角版本显示替换
function change_update_link() {
return ‘www.keryi.com’;
}
add_filter( ‘update_footer’, ‘change_update_link’, 9999);

function bzg_remove_loginlogo() {
echo ‘<style>#login > h1 a {background: none;}</style>’;
}
add_action(‘login_head’, ‘bzg_remove_loginlogo’);

function bzg_remove_help() {
get_current_screen()->remove_help_tabs();
}
add_action(‘admin_head’, ‘bzg_remove_help’);

function bzg_remove_dashboard_widgets() {
global $wp_meta_boxes;
//删除 “活动” 模块
unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_activity’]);
//删除 “WordPress 新闻” 模块
unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’]);
}
add_action(‘wp_dashboard_setup’, ‘bzg_remove_dashboard_widgets’ );

function footerText () {
return ”;
}
add_filter(‘admin_footer_text’, ‘footerText’, 9999);

function annointed_admin_bar_remove() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘wp-logo’);
}
add_action(‘wp_before_admin_bar_render’, ‘annointed_admin_bar_remove’, 0);

function remove_dashboard_meta() {
remove_meta_box( ‘dashboard_incoming_links’, ‘dashboard’, ‘normal’ );
remove_meta_box( ‘dashboard_plugins’, ‘dashboard’, ‘normal’ );
remove_meta_box( ‘dashboard_primary’, ‘dashboard’, ‘side’ );
remove_meta_box( ‘dashboard_secondary’, ‘dashboard’, ‘normal’ );
remove_meta_box( ‘dashboard_quick_press’, ‘dashboard’, ‘side’ );
remove_meta_box( ‘dashboard_recent_drafts’, ‘dashboard’, ‘side’ );
remove_meta_box( ‘dashboard_recent_comments’, ‘dashboard’, ‘normal’ );
remove_meta_box( ‘dashboard_right_now’, ‘dashboard’, ‘normal’ );
remove_meta_box( ‘dashboard_activity’, ‘dashboard’, ‘normal’);//since 3.8
}
add_action( ‘admin_init’, ‘remove_dashboard_meta’ );

function customize_app_password_availability( $available, $user ) {
if ( ! user_can( $user, ‘manage_options’ ) ) {
$available = false;
}

return $available;
}

add_filter( ‘wp_is_application_passwords_available_for_user’, ‘customize_app_password_availability’, 10, 2 );