/ Published in: PHP
Add the line of code to your theme's function.php file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function my_function_admin_bar($content) { return ( current_user_can("administrator") ) ? $content : false; } add_filter( 'show_admin_bar' , 'my_function_admin_bar');