Support » Plugin: WooCommerce » where is the option to "unhide" the admin bar for subscribers?

  • ds123

    (@ds123)


    i’ve had to hack some woocommerce function to unhide the admin bar for subscribers ….problem is every upgrade i have to remember to re-do it …..it took me forever to figure out it was this plugin causing this to happen …. how can i fix it so upgrades don’t overwrite ?

    thanks!

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • popgirl23

    (@popgirl23)

    what is your hack?

    what i did is in /wp-content/plugins/woocommerce/includes/wc-customer-functions.php comment out lines 26-33

    /**
    
    function 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 );
     */

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘where is the option to "unhide" the admin bar for subscribers?’ is closed to new replies.