banner
「云华」CloudSino

网络一隅/Net`Corner

愿我的祝福与你同在!
bilibili
steam
github
zhihu
misskey
email

补档|使你的WordPress去WordPress化

*移除部分WP标志

image
add_action('admin_bar_menu', function($wp_admin_bar){
	$wp_admin_bar->remove_menu('wp-logo');
}, 11);

↑, 移除页面上部工具栏的Logo


add_filter('admin_title', 'fanly_remove_admin_title', 10, 2);
function fanly_remove_admin_title($admin_title, $title){
    return $title.' ‹ '.get_bloginfo('name');
}

↑, 移除后台页面名称的"-WordPress"后缀

add_filter('login_title', 'fanly_remove_login_title', 10, 2);
function fanly_remove_login_title($login_title, $title){
    return $title.' ‹ '.get_bloginfo('name');
}

↑, 移除登录页面名称的"-WordPress"后缀

function clearn_login_logo() {
echo '<style type="text/css">
h1 a { display:none !important; }
</style>';
}
add_action('login_head', 'clearn_login_logo');

↑, 移除登录页面上部的Logo

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.