Hide Category by User Role for WooCommerce


This plugin allows you to easily hide WooCommerce categories based on User Role.

You can also choose to redirect users to a URL or display a custom message when they attempt to access a hidden category or its related products.

This plugin has been tested with the most recognized user role management plugins. However, if you notice any bugs, please contact us.


  • Hide By category
  • Hide By user role
  • Display a custom message when a user attempts to access a hidden category or its related products.
  • Customize the message to match the look and feel of your site.
  • Import and Export your settings.


To install this plugin:

  1. Install the plugin through the WordPress admin interface, or upload the plugin folder to /wp-content/plugins/ using FTP.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress. On a Multisite you can either network activate it or let users activate it individually.
  3. Go to WordPress Admin > Hide Category by User Role for WooCommerce


সেপ্টেম্বর 26, 2023
Powerful, useful and pretty designed. Stunning job!
সব রিভিউ পড়ুন

ডেভেলপার এবং কন্ট্রিবিউটর

“Hide Category by User Role for WooCommerce” is open source software. The following people have contributed to this plugin.


Translate “Hide Category by User Role for WooCommerce” into your language.

ডেভেলপমেন্ট এ আগ্রহী?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Date: Jun 11 2024
  • Resolved an issue causing infinite redirection when the Redirect URL points to the /shop page but all categories are hidden for a specific user role.
  • Enhanced validation of hidden categories. Terms are now consulted by ID or slug if custom walkers return these values instead of the term object.
  • Implemented the exclude_related_products function to exclude related products belonging to hidden categories from the Related Products WooCommerce block.
  • Implemented the custom_upsell_ids and custom_cross_sell_ids functions to exclude products belonging to hidden categories from the up-sells and cross-sells WooCommerce blocks.
  • Dequeued theme stylesheets specifically for the plugin’s options page to prevent theme styles from overriding the plugin’s look and feel.
  • Improved the look and feel of the administration page


  • Date: Apr 30 2024
  • Code Improvements


  • Date: Oct 12 2023
  • Fixed *** Missing Files


  • Date: Oct 12 2023
  • Added Import/Export feature. You can export a JSON file containing all your settings.
  • Added a Reset Settings feature. Now you can easily reset your previous configuration with a single click.
  • Added a Message Wrapper feature. You can now choose the DOM element container for your blocked category or product message.
  • Added Custom Message Styles feature. You can now include CSS rules to customize the message displayed to the users.
  • The overall appearance and user experience have been enhanced.


  • Date: Feb 6 2023
  • Added support for Dokan. Now you can have products and categories that will only be available to sellers (seller-to-seller).
  • Added a new feature to remove from cart products that may have been added before hiding their categories on the site. This prevents users from purchasing products that are hidden to them.


  • Date: Jan 19 2023
  • Added improvements to the way a user is redirected when visiting a hidden category or product.
  • Added WordPress methods to bypass browser cache on hidden products and categories.


  • Date: Jan 17 2023
  • Fixed some compatibility issues with the bootstrap files loaded by other plugins.


  • Date: Jan 16 2023
  • First release of the plugin.