Change WordPress user roles and capabilities Forums How to or FAQ Role for Woocommerce that only allows Order Management & FedEx Package Creation Reply To: Role for Woocommerce that only allows Order Management & FedEx Package Creation

#3716
Vladimir
Keymaster

Yes, functions.php. You have to use role ID in a code:


add_filter('wf_user_permission_roles', 'wf_user_permission_roles');

function wf_user_permission_roles($roles) {

    $roles[] = 'manager';
    $roles[] = 'orders';

    return $roles;
}