Roles and Capabilities
WooCommerce registers two user roles once activated, and grants additional capabilities to the Admin:
manage_woocommerce
for WooCommerce Settingsview_woocommerce_reports
Customer role
People become Customers when registering via the checkout or sign-up process.
Customers:
- Have read access only for most capacities. This is the equivalent status to a normal blog subscriber.
- Can edit their own account information.
- View past/present orders.
Shop Manager role
Shop Manager is a role you can give someone to manage the shop without making them an Admin. They have all the rights a customer has, and are granted the main capabilities:
manage_woocommerce
: Gives shop managers the option to manage all settings within WooCommerce, and create/edit products.view_woocommerce_reports
: Gives them access to all WooCommerce reports.
The Shop Manager role has all the capabilities listed at our WooCommerce GitHub repo.
They also have general WordPress editor capabilities.
Tweaking capabilities
If you wish to modify roles and capabilities, use a third-party plugin such as:
Lista de Github
// Customer role. add_role( 'customer', 'Customer', array( 'read' => true, ) ); // Shop manager role. add_role( 'shop_manager', 'Shop manager', array( 'level_9' => true, 'level_8' => true, 'level_7' => true, 'level_6' => true, 'level_5' => true, 'level_4' => true, 'level_3' => true, 'level_2' => true, 'level_1' => true, 'level_0' => true, 'read' => true, 'read_private_pages' => true, 'read_private_posts' => true, 'edit_posts' => true, 'edit_pages' => true, 'edit_published_posts' => true, 'edit_published_pages' => true, 'edit_private_pages' => true, 'edit_private_posts' => true, 'edit_others_posts' => true, 'edit_others_pages' => true, 'publish_posts' => true, 'publish_pages' => true, 'delete_posts' => true, 'delete_pages' => true, 'delete_private_pages' => true, 'delete_private_posts' => true, 'delete_published_pages' => true, 'delete_published_posts' => true, 'delete_others_posts' => true, 'delete_others_pages' => true, 'manage_categories' => true, 'manage_links' => true, 'moderate_comments' => true, 'upload_files' => true, 'export' => true, 'import' => true, 'list_users' => true, 'edit_theme_options' => true, ) );