@pgdarkness, the role of our vendor is dc_vendor
Hence you need to enable this option for this user role only. For further help, please chek this link – https://stackoverflow.com/questions/49490336/show-wordpress-admin-bar-on-frontend-for-specific-user-roles
Thanks for the tip.
For those who need a bit more help, I added this code to my child theme’s function.php and it worked: (While plugins such as “Admin menu editor” or “User role editor” failed to do this.)
add_action('init', 'admin_bar' );
function admin_bar(){
if(is_user_logged_in()){
$user = wp_get_current_user();
if ( in_array( 'dc_vendor', (array) $user->roles ) ) {
add_filter( 'show_admin_bar', '__return_true' , 1000 );
}
}
}