Set New User Default Role to Contributor. Change user role of existing users as well, if needed.
UPDATE
Add this to your functions.php
file. It’ll allow your contributor and author users to add WooCommerce products.
And then set default user role to contributor as I suggested before.
function wpse_306836_wc_custom_permission( $args, $post_type ) {
if ( 'product' === $post_type ) {
$args['capability_type'] = 'post';
}
return $args;
}
add_filter( 'register_post_type_args', 'wpse_306836_wc_custom_permission', 10, 2 );
Please note, some features like creating taxonomies, assigning them, uploading media files etc won’t work. You need to change permission for these as well.
Related Posts:
- Execute PHP code only with specific user role
- Hide payment method based on user role AND minimum cart value
- How to properly create multiple conditions to redirect users roles to different pages
- wp_insert_user role not working
- Woocommerce get selected shipping zone id for the current user
- retrieve thumbnail from post ID of best selling product in category
- Display a selected custom product option in WooCommerce cart
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- wordpress separate registration for different roles
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- How to show order data by multiple ID?
- Problem with Woocommerce REST API Authentication
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- Woocommerce HTML email option unavailable
- How to add SVG icon above product tab title
- How does WooCommerce ensure that a product doesn’t run out of stock during payment? [closed]
- How to change / delete product short description in Woocommerce
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- woocommerce – hide payment method in new order email
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- WooCommerce – Reset quantity input field when variation changes
- Custom Text in WooCommerce Order Processing Email Based on Products
- woocommerce subscriptions – get expiration date [closed]
- Automatically remove a canceled order in Woocommerce
- Woocommerce hook run after an Order been created through REST API
- How can I apply_filters from inside a function?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Displaying Woocommerce Product Category in WordPress
- Displaying custom taxonomy on WooCommerce product page
- Change “add to cart” button color based on Woocommerce product category [closed]
- Add to cart function not working for first product when cart is empty [closed]
- Woocommerce : Can’t get product info in loop
- WooCommerce custom product dimensions
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- WordPress Woocommerce – Product Type [closed]
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Single Quotes in .php file doesn’t load website
- get_total () returns 0 – woocommerce [closed]
- email alert for product availability
- How to rename woocommerce-billing-fields
- WooCommerce pages looks unstyled
- How to display a custom product field value of a specific category on a Woo Commerce checkout page?
- Array to string conversion error in PHP 7.2 when returning user role as class
- Create a package of products as one Item in woocommerce?
- fetch woocommerce product with custom taxonomy
- Noindex subscriber author page
- After disabling WPML multi currency, the currency is still handled by the WPML
- Custom Taxonomy Select Menu: Setting default option value?
- How can i programmatically change the SKU of a product based on product variation?
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Add a custom WooCommerce settings tab with sections
- Display Sibling WooCommerce Product Categories on Archive Page
- Checking page before applying image restrictions while uploading
- WordPress Fresh Install Errors (Woocommerce specifically now)
- Generate images with html2canvas and the woocommerce api
- How to update ticket price programatically when adding to cart and checkout in woocommerce
- Woocommerce – Exclude variation attribute on specific variation
- PHP function for horizontal Woocommerce thumbnails and badges
- WooCommerce display price before add to cart [closed]
- Get the same SKU from woocommerce itself for simple and variable products
- How can I show how much water got saved on this order (making use of the number of items bought) on a thank-you-page?
- Woocommerce checkout page – custom field checkbox value into email
- WooCommerce function not working correctly after moving from the functions.php into a class
- Filter for product subcategory listing page load
- Reduce Stock Based on Custom Variation Field Rather than Attribute (Working Script)
- Get x numbers of a woocommerce category products using Wp_Query
- WooCommerce – template_redirect if is_checkout AND order has been paid?
- AJAX to add to cart multiple products woocommerce
- Make WooCommerce product categories only show images on homepage
- ACF under category name in shop page [closed]
- WooCommerce Quantity in Dropdown menu instead of clasic [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- Hot to edit WooCOmmerce dashboard?
- WooCommerce subcategories help
- WooCommerce multiple custom fields code
- Search function not working
- loop to return tags in woocommerce in alphabetical order?
- Echo Option Value Based On WordPress User Role
- How to have more than one ID included in the exclude command?
- wp_query beginner
- WordPress using get_term to retreive slug not working as expected
- Can’t make product images clickable
- WooCommerce – Print Processing orders [closed]
- Hide cart when empty [closed]
- WooCommerce Custom Pagination
- Order woo products, but first products must be with acf fields
- Forbid certain users to access a specific page
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Grabbing value of input field inside of array
- How to set variable to specific field when querying
- How to lock users account until approvation
- WooCommerce Checkout Cart [closed]
- How to create a User Role and give permission to only use Web Stories plugin?
- Woocommerce – add tracking code to another email template
- How to add custom user role into wordpress