diff --git a/functions.php b/functions.php index 64ab8c6..f64fc6d 100644 --- a/functions.php +++ b/functions.php @@ -101,7 +101,7 @@ function custom_toolbar() { $wp_admin_bar->add_menu( $args ); } -if ( is_admin() ) { +if ( current_user_can( 'administrator' ) ) { add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 ); } ?> \ No newline at end of file