ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:41 PM

Disable Admin Bar

Disable Admin Bar

<?php

function ccd_hide_admin_bar_settings() { ?>

	<style type="text/css">
		.show-admin-bar {
			display: none;
		}
	</style>
	
<?php }
add_filter( 'show_admin_bar', '__return_false' );
 
function ccd_disable_admin_bar() {
  
    add_filter( 'show_admin_bar', '__return_false' );
    add_action( 'admin_print_scripts-profile.php', 'jr_hide_admin_bar_settings' );
}
add_action( 'init', 'jr_disable_admin_bar' , 9 );

?>

Disable Admin Bar

WordPress Snippet