Code Snippets

Remove WordPress Admin Bar

Remove the WordPress Admin bar from selected User Access Levels.
//Disable the WordPress Admin Bar for all Users and Visitors
remove_action( 'init', '_wp_admin_bar_init' );
//Enable the WordPress Admin Bar for admins only
if ( !current_user_can( 'manage_options' ) ) {
	remove_action( 'init', '_wp_admin_bar_init' );

Hire a WordPress Expert

Get hourly and project based theme customization, theme tweaks, and development help from an experienced Kelowna WordPress developer.  We’ve been building WordPress websites full-time for over a decade. We can help you.