In continue of Joost de Valk’s article about how to disable the new since WordPress 3.1, and quite awful looking admin bar here’s an updated guide on how to manage this.
Using a cascading style sheet (CSS) would be a way to accomplish this, but since they both (Ozh, and ilovecolors) have a wicked site, and it’s useful for all other kind of tweaks and setting-removals I sort of prefer the jQuery way of handling this.
To disable the WordPress admin bar
/* * Remove admin bar. */ add_filter( 'show_admin_bar', '__return_false' );
To disable the user settings
function cor_personal_options() {
?>
<script type="text/javascript">
jQuery(document).ready( function() {
// Remove admin bar
jQuery( "form#your-profile table.form-table tr.show-admin-bar" ).remove();
} );
</script>
<?php
}
add_action( 'personal_options', 'cor_personal_options' );
