@consumerdesign, that disables it for a specific user (whomever has the user ID of 2 in the example). I'm looking it do it based on the user role.
Thanks to you, I found that Yoast article on the issue and it got me on the right track. I'm thinking something along these lines (notice bold section):
<?php function yoast_hide_admin_bar_settings() {
?>
<style type="text/css">
.show-admin-bar {
display: none;
}
</style>
<?php
}
function yoast_disable_admin_bar() {
if (current_user_can( 'publish_posts' )){
add_filter( 'show_admin_bar', '__return_false' );
}
}
add_action( 'init', 'yoast_disable_admin_bar' , 9 );
Any thoughts?