How to Restrict Custom Stock Status by User Role?

Restricting Custom Stock Status Based on User Role

You can restrict custom stock statuses by user role using the WooCommerce Custom Stock Status plugin. This allows you to control which user roles can see specific stock statuses, ensuring that certain statuses are only visible to authorized users.

You can follow these steps:

  • Navigate to WP Admin Panel > WooCommerce > Custom Stock
  • You’ll find an option to Add New stock status. Enter a name for your custom stock status. 
  • In the “Rule Attributes” section, select the User Roles you want to restrict custom stock status. You can choose from the following user roles:
    • Administrator
    • Editor
    • Author
    • Contributor
    • Subscriber
    • Customer
    • Shop manager
    • Wholesale
    • B2B
    • Retailer
    • Guest
  • Specify products and categories and fill in the required options. 
  • Click on Publish

To ensure that the restrictions are working correctly, log in to your WooCommerce store using a user account belonging to a role with restricted access to a particular stock status. Check the product pages displaying the stock status and verify that the restricted status is not visible for that user role.