#1624
bikostudio
Participant

Look, when I past this code in the woocommerce/includes/wc-user-functions.php

right after this

unction wc_disable_admin_bar( $show_admin_bar ) {
if ( apply_filters( ‘woocommerce_disable_admin_bar’, get_option( ‘woocommerce_lock_down_admin’, ‘yes’ ) === ‘yes’ ) && ! ( current_user_can( ‘edit_posts’ ) || current_user_can( ‘manage_woocommerce’ ) ) ) {
$show_admin_bar = false;
}

return $show_admin_bar;
}
add_filter( ‘show_admin_bar’, ‘wc_disable_admin_bar’, 10, 1 );

it shows the admin bar even for the non user, for visitors