Plugin Author
weDevs
(@wedevs)
I am not clear about your question. Are you trying to hide admin bar from user or something else?
My site have visible admin bar for all members.
when i activate wp-user-frontend, admin bar is visible only for administrator, and is hidden for all other user roles. How make admin bar visible for all visitors?
I’ve tried adding: show_admin_bar( true ); to my theme’s functions.php but nothing happened. Admin bar is not visible.
function custom_force_show_admin_bar() {
show_admin_bar( true );
}
add_action('wp_footer', 'custom_force_show_admin_bar');
this not working too
Plugin Author
weDevs
(@wedevs)
I would like unhide admin bar
Plugin Author
weDevs
(@wedevs)
This plugin can help you -https://ww.wp.xz.cn/plugins/always-show-admin-bar/
Thank you. This plugin unhide admin bar, and this plugin change admin bar menu links and set cookies.
But this plugin code is helpful for me.
I remove always-show-admin-bar plugin and adding to my theme’s functions.php
add_filter( 'show_admin_bar', '__return_true' );
now without always-show-admin-bar plugin, admin bar is always visible.
Thank you
Disable the admin bar:
add_filter( 'show_admin_bar', '__return_false' );