Vendor Roles
Woo Sell Services uses WordPress user roles to distinguish between vendors (service providers) and customers. Configure which roles have vendor capabilities to control who can create and manage service products.
Setting Vendor Roles
Section titled “Setting Vendor Roles”- Navigate to WP Admin > Woo Sell Services > General Settings
- Find the Seller User Roles setting
- Select one or more WordPress roles that should act as vendors
- Click Save
Users with the selected roles can:
- Create service products
- Receive service orders
- View the Service Provider tab in My Account
- Send and receive conversation messages as the vendor
- Submit deliveries
- View vendor-specific notifications
Default Roles
Section titled “Default Roles”Out of the box, the following roles are commonly used as vendor roles:
| Role | Source |
|---|---|
| Administrator | WordPress core |
| Shop Manager | WooCommerce |
| Vendor | Dokan |
| Store Vendor | WC Vendors |
| WCFM Vendor | WCFM |
Role Capabilities
Section titled “Role Capabilities”Vendor roles need specific WordPress capabilities to function properly with Woo Sell Services:
| Capability | Purpose |
|---|---|
edit_products |
Create and edit WooCommerce products |
upload_files |
Attach files in conversations |
edit_posts |
Required for the WordPress media uploader |
If a custom role is used, ensure these capabilities are assigned.
Customer Roles
Section titled “Customer Roles”Any WooCommerce customer can purchase service products. No special role configuration is needed for buyers. Customer-side features (requirement submission, conversations, delivery review, ratings) are available to all authenticated users who have purchased a service.
Role Filters
Section titled “Role Filters”Use these filters to dynamically control which roles are allowed:
| Filter | Purpose |
|---|---|
wss_allowed_vendors |
Override the list of vendor roles |
wss_allowed_customers |
Override the list of customer roles |
// Example: Add a custom "freelancer" role as a vendoradd_filter( 'wss_allowed_vendors', function( $roles ) { $roles[] = 'freelancer'; return $roles;} );
