Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Give Shop Managers access to dashboard
* This will Give WooCommerce Sho[p Managers access to the dashboad of you are removing access for other users
* Add this code to your PMPro Customizations Plugin -
function shop_manager_show_admin_bar() {
if(current_user_can('shop_manager')) {
add_filter( 'show_admin_bar', '__return_true' );
add_action('init', 'shop_manager_show_admin_bar', 9);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment