• jaspash

    (@jaspash)


    Hello there,

    I created a custom role using your plugin. The system name of this role is ‘um_members’.

    Problem is that a user with the ‘shop_manager’ role can NOT create a new user with the role ‘um_members’ using the native ‘user user page’.

    This is a known issue for the ‘shop_manager’ role and I used to use the snippet below to sort this out. But it does not work with the roles created by your plugin. I guess that there might be a conflict with the permissions ruled by your plugin.

    Can you tell me how to sort this out? I just need the ‘shop_manager’ role to be able to create a new user with the ‘um_members’ role using the native ‘user user page’.

    function extend_shop_manager_role_edit_capabilities( $roles ) {
    $roles[] = 'um_members';
    return $roles;
    }
    add_filter( 'woocommerce_shop_manager_editable_roles', 'extend_shop_manager_role_edit_capabilities' );

    • This topic was modified 4 weeks ago by jaspash.
  • You must be logged in to reply to this topic.