Home / Admin / Allow WooCommerce Shop Managers to manage vendors
Duplicate Snippet

Embed Snippet on Your Site

Allow WooCommerce Shop Managers to manage vendors

Code Preview
php
<?php
/* Lets Shop Managers edit users with these user roles */
function wcv_allow_shop_manager_role_edit_capabilities( $roles ) {
$roles[] = ‘vendor’; // insert the role you want them to be able to access here, copy+paste this line for additional user roles
return $roles;
}
add_filter( ‘woocommerce_shop_manager_editable_roles’, ‘wcv_allow_shop_manager_role_edit_capabilities’ );

Comments

Add a Comment