Code Snippets

Hide Toolbar on front end except for Administrators

add_filter( 'show_admin_bar' , 'webendev_hide_admin_bar');
/**
* Hide Toolbar (Admin Bar) on front end for all except Administrators
*
*/
function webendev_hide_admin_bar($content) {
return ( current_user_can( 'administrator' ) ) ? $content : false;
}
view raw functions.php hosted with ❤ by GitHub