Skip to content

Instantly share code, notes, and snippets.

@fervous
Created February 16, 2017 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/6b6d82fe2e3f8bdf98a44e27b4463919 to your computer and use it in GitHub Desktop.
Save fervous/6b6d82fe2e3f8bdf98a44e27b4463919 to your computer and use it in GitHub Desktop.
create / add a new additional vendor role - wc vendors
/* 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