sss
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
7 additions
and
0 deletions
| ... | @@ -108,3 +108,10 @@ function template_chooser($template) | ... | @@ -108,3 +108,10 @@ function template_chooser($template) |
| 108 | add_filter('template_include', 'template_chooser'); | 108 | add_filter('template_include', 'template_chooser'); |
| 109 | 109 | ||
| 110 | 110 | ||
| 111 | |||
| 112 | add_action('after_setup_theme', 'remove_admin_bar'); | ||
| 113 | function remove_admin_bar() { | ||
| 114 | if (!current_user_can('administrator') && !is_admin()) { | ||
| 115 | show_admin_bar(false); | ||
| 116 | } | ||
| 117 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment