最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Hide admin bar by default

programmeradmin3浏览0评论

To hide the admin bar for a user, it is possible to toggle off the checkbox 'toolbar' in personal options for each user.

But when a new user is created to the website the checkbox 'toolbar' is always unchecked Is there any way to let it be, by default, that the checkbox 'toolbar' in personal options will be checked? Is there any setting (using some kind of code) that it is possible to control this?

To hide the admin bar for a user, it is possible to toggle off the checkbox 'toolbar' in personal options for each user.

But when a new user is created to the website the checkbox 'toolbar' is always unchecked Is there any way to let it be, by default, that the checkbox 'toolbar' in personal options will be checked? Is there any setting (using some kind of code) that it is possible to control this?

Share Improve this question edited Jun 16, 2019 at 19:30 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jun 16, 2019 at 16:03 darixddarixd 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

Yes it is possible, there is a code:

// inside functions file
add_filter('show_admin_bar', '__return_false');

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论