Wyłącz administrator WordPress
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
Petros Karagiannidis
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}