function my_edit_toolbar($wp_toolbar) {
$wp_toolbar->remove_node('wp-logo'); //去掉Wordpress LOGO
$wp_toolbar->remove_node('site-name'); //去掉网站称号
$wp_toolbar->remove_node('updates'); //去掉更新提示
$wp_toolbar->remove_node('comments'); //去掉评论提示
$wp_toolbar->remove_node('new-content'); //去掉新建文件
$wp_toolbar->remove_node('top-secondary'); //用户信息
}
add_action('admin_bar_menu', 'my_edit_toolbar', 999);
<p id="footer-left" class="alignleft">
<?php
/**
* Filter the "Thank you" text displayed in the admin footer.
*
* @since 2.8.0
* @param string The content that will be printed.
*/
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://ym-in.com/">yuemei</a>.' ) . '</span>' );
?>
</p>
以上就是安达网络工作室关于《wordpress去掉自带的logo或者左侧栏的菜单方法》的一些看法。更多内容请查看本栏目更多内容!
在 PHP 中发送 Http 申请(GET / POST)有很多的办法,比方 file_get_contents() 函数、fopen() 函数或许 c...
一、增加一个存储投稿者邮箱的自定义栏目 关上WordPress增加投稿性能,上面咱们将对这篇文章中的代码进...
应用wordpass博客顺序的冤家都晓得他的默许首页是index.php,但是地球人都晓得index.html的太首页可以进步网...
get_category get_category 可能咱们平常接触的不多,但却是很有用,网上这个函数引见的貌似不多,所以明天...
要害字形容:网站 外观 治理 切换 如何 主题 Wordpress WordPress 上一次教程咱们讲述了Wordpress友谊链接...
1 下载并解紧缩“WordPress”,英文版能够到WordPress民间网站下载,中文版能够到WordPress中文论...