How Can We Help?
< Back
You are here:
Print

Missing AdminBar

Some custom wordpress theme doesn’t show the admin bar into the theme page same with the wp_head() and the wp_footer() wrote on the templates files. To resolve that problem just add the following code into your function.php or into your own plugin:

function admin_bar(){

if(is_user_logged_in()){
add_filter( ‘show_admin_bar’, ‘__return_true’ , 1000 );
}
}
add_action(‘init’, ‘admin_bar’ );

https://stackoverflow.com/questions/21277190/wordpress-admin-bar-not-showing-on-frontend

Table of Contents