Top Left Text cha

Website Development Services

The basic WordPress function for hiding the admin bar is:
show_admin_bar(false);

To show it to users with administrative privileges:
if ( ! current_user_can( 'manage_options' ) )
    { show_admin_bar( false ); }

For newer versions of WordPress, you may need this instead, so it shows the admin bar in the dashboard:
add_filter('show_admin_bar', '__return_false');

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X