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或者左侧栏的菜单方法》的一些看法。更多内容请查看本栏目更多内容!
利用弱小的技术,能够把基于WordPress的网站做成各种各样的方式,这除了要求WordPress主题开发人员通晓HTML...
在WordPress 中,__()函数和__e()函数被用来辨认php文件中被标示的、需求被翻译成其它言语或本地化的字符串...
置信很多站长都晓得并且曾经在应用WordPress自定义字段,很多插件也应用了这一性能。 自定义字段是一个十分...
WordPress 默许有 “订阅者”、“投稿者”、“作者”、“编辑” 和 “治理员” 五个用户角色,权限由低到高...
复制代码代码如下: <?php //Put this in functions.php function get_primary_image($id, $size){ ...
调用网站最新文章: 复制代码代码如下:<?phpquery_posts('showposts=10&orderby=new'); //showposts=10示意...