• Resolved engy26

    (@engy26)


    hi, I need the shop manager to change the role of registered customers, I entered this code.
    function myextension_shop_manager_role_edit_capabilities( $roles ) {
    $roles[] = ‘editor’;
    $roles[] = ‘rivenditore’;
    $roles[] = ‘subscriber’;
    return $roles;
    }
    add_filter( ‘woocommerce_shop_manager_editable_roles’, ‘myextension_shop_manager_role_edit_capabilities’ );

    allows me to modify non-customer accounts, but the role curtain does not appear, I need the shop mager to change roles as before the update

    I have
    wordpress 5.5.2
    woocommerce 3.7

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    Since this is a few weeks old, and about customization, I am going to mark as resolved. A lot of people have found help in the Advanced WooCommerce group with things like this, so I would recommend checking there, or we highly recommend contacting one of the services on our Customizations page (https://woocommerce.com/customizations/)

    Thread Starter engy26

    (@engy26)

    that is, have you removed a function and then make it pay to return as before ?? very ethical

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem role dhop manager’ is closed to new replies.