• Resolved mansoorf

    (@mansoorf)


    Hi dear plugin experts and devs,
    I think in the last update I have a mistake .
    My “Shop Manager” user profile cannot see the default wp & wc roles even roles were created with Capability manager enhanced!
    Just can see customers role.
    what happen and how can I get this correct ?
    tnx in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mansoorf

    (@mansoorf)

    is this question need more description ?

    PixelPlanet

    (@pixelplanet)

    The same problem!
    Worked before the last WooCommerce update. Which right/capability do I have to edit or add to give the ShopManger the right to use and see all roles in the “Change role to…” dropdown?

    Thanks!

    Thread Starter mansoorf

    (@mansoorf)

    Hi, Yes the “change role” dropdown is empty for My Shopmanager.
    plz help us …
    tnx

    Same PROBLEM. PLEASE HELP.

    Thread Starter mansoorf

    (@mansoorf)

    hi this because of new policies of woocommerce .
    add the bellow code in your template function file.
    note: replace custom-role-x with your role name. (role name)

    function myextension_shop_manager_role_edit_capabilities( $roles ) {
      $roles[] = 'custom-role-1';
      $roles[] = 'custom-role-2';
      $roles[] = 'custom-role-3';
    
      return $roles;
    };
    add_filter( 'woocommerce_shop_manager_editable_roles', 'myextension_shop_manager_role_edit_capabilities' );
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shop Manager Role Cannot change user’s role’ is closed to new replies.