Hide admin bar by default

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

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');

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745397547a4625948.html

相关推荐

  • Hide admin bar by default

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

    11小时前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信