Created
February 16, 2017 02:02
-
-
Save fervous/6b6d82fe2e3f8bdf98a44e27b4463919 to your computer and use it in GitHub Desktop.
create / add a new additional vendor role - wc vendors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* First use USER ROLE EDITOR PLUGIN to create a new role and duplicate the vendor role capabilities.*/ | |
/* Add the new role name to the code below. */ | |
add_filter('wcvendors_vendor_roles', 'new_wcvendors_vendor_roles'); | |
function new_wcvendors_vendor_roles($vendor_roles){ | |
$vendor_roles = array('vendor', 'newvendor'); | |
return $vendor_roles; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment