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 badge1 Answer
Reset to default 1Yes it is possible, there is a code:
// inside functions file
add_filter('show_admin_bar', '__return_false');