Title: Hide Category by User Role for WooCommerce
Author: ThemeSupport
Published: <strong>16 Yennayer 2023</strong>
Last modified: 29 Maggu 2026

---

Search plugins

![](https://ps.w.org/hide-category-by-user-role-for-woocommerce/assets/banner-772x250.
png?rev=2849407)

![](https://ps.w.org/hide-category-by-user-role-for-woocommerce/assets/icon.svg?
rev=2849407)

# Hide Category by User Role for WooCommerce

 By [ThemeSupport](https://profiles.wordpress.org/themesupport/)

[Download](https://downloads.wordpress.org/plugin/hide-category-by-user-role-for-woocommerce.3.0.1.zip)

 * [Details](https://kab.wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/#description)
 * [Reviews](https://kab.wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/#reviews)
 *  [Installation](https://kab.wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/#installation)
 * [Development](https://kab.wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/)

## Description

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](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/).

## Screenshots

[⌊Hide By category⌉⌊Hide By category⌉[

Hide By category

[⌊Hide By user role⌉⌊Hide By user role⌉[

Hide By user role

[⌊Display a custom message when a user attempts to access a hidden category or its
related products.⌉⌊Display a custom message when a user attempts to access a hidden
category or its related products.⌉[

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.⌉⌊Customize the 
message to match the look and feel of your site.⌉[

Customize the message to match the look and feel of your site.

## Installation

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

## Reviews

![](https://secure.gravatar.com/avatar/ebee0f8c6a05b144faf2e6c0d68c46ee7e9b28ff4637ad73bf5f2d9d6ec63063?
s=60&d=retro&r=g)

### 󠀁[Needs an update](https://wordpress.org/support/topic/works-great-9748/)󠁿

 [neotek9](https://profiles.wordpress.org/neotek9/) 12 Furar 2026 1 reply

Initially appeared to work fine. Then product pages wouldn't load properly. (WPBakery
theme).

![](https://secure.gravatar.com/avatar/2b831b78400dee96bae55e448be23dfa0e1aa4fd1a2cb127f7c4a01fd259a372?
s=60&d=retro&r=g)

### 󠀁[Mantapp Jiwa Berguna Gess](https://wordpress.org/support/topic/mantapp-jiwa-berguna-gess-10/)󠁿

 [Ahlan Creative](https://profiles.wordpress.org/thariqaziz21/) 25 Yunyu 2025 1 
reply

Plugin Freemium terbaikkkkkk!!!! Sangat direkomendasikan

![](https://secure.gravatar.com/avatar/acf8e1cfb62bdb441422461c74ae461f9754e7f8038dbc10ad9950ae4d94ebb3?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin and support](https://wordpress.org/support/topic/awesome-plugin-and-support-257/)󠁿

 [rochirogo](https://profiles.wordpress.org/rochirogo/) 6 Yennayer 2025

The plugin does everything it offers with a very friendly interface. Thank you!

![](https://secure.gravatar.com/avatar/80ed01212330c74caa9b85015b4255ad168cc88a2c98feca912d43714451a896?
s=60&d=retro&r=g)

### 󠀁[Great and simple solution,](https://wordpress.org/support/topic/great-and-simple-solution-3/)󠁿

 [wowsathish](https://profiles.wordpress.org/wowsathish/) 23 Ibrir 2024

Does what it says and we can hide our shop in just one click! Thanks for the hardwork
you have done 🙂

![](https://secure.gravatar.com/avatar/6388af5c9d1bdc21b1d7e8dd5f6940c134b6ce388ca6c5b4194b693ace26f0ea?
s=60&d=retro&r=g)

### 󠀁[Excellent!](https://wordpress.org/support/topic/excellent-12998/)󠁿

 [dporteiro](https://profiles.wordpress.org/dporteiro/) 26 Ctember 2023

Powerful, useful and pretty designed. Stunning job!

![](https://secure.gravatar.com/avatar/58efeb4e193dc3a8d745f5dffae728b6fb1cb940f804fa155b29d8a177bb5d74?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin.](https://wordpress.org/support/topic/excellent-plugin-8668/)󠁿

 [leossah](https://profiles.wordpress.org/leossah/) 28 Yunyu 2023

Really useful for hiding categories based on user roles.

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/)

## Contributors & Developers

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

Contributors

 *   [ ThemeSupport ](https://profiles.wordpress.org/themesupport/)

[Translate “Hide Category by User Role for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/hide-category-by-user-role-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hide-category-by-user-role-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hide-category-by-user-role-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hide-category-by-user-role-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/hide-category-by-user-role-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0.1

 * Date: May 29 2026
 * Fixed restricted product category direct URL access to correctly apply plugin
   access mode (Custom URL redirect or Display Message).
 * Fixed frontend category term visibility by filtering restricted product categories
   from category lists and related term-based outputs.
 * Fixed frontend menu visibility by filtering restricted product category links
   from navigation menus.

#### 3.0

 * Date: May 21 2026
 * Confirmed compatibility with WordPress 7.0.
 * Refreshed the admin UI with a new master-detail workflow for « Hide by Category»
   and « Hide by User Role ».
 * Added searchable permission grids with improved role/category selection UX and
   consistent « Select All / Clear All » actions.
 * Redesigned the Settings tab with clearer section hierarchy and improved Import/
   Export layout.
 * Improved large dataset usability with internal scrolling for long role/category
   lists.
 * Simplified admin visual layering and spacing to provide a cleaner, denser, and
   more modern interface.
 * Updated branding placement in admin header/footer and removed the legacy sidebar
   CTA block.
 * Fixed visibility toggling in Settings redirect mode sections after UI updates.

#### 2.4

 * Date: Apr 3 2026
 * Fixed an issue where hidden products could still be accessed directly via URL.
 * Centralized product visibility checks to ensure consistent behavior across single
   product pages, add-to-cart validation, and cart item cleanup.
 * Improved hidden category detection by validating parent category restrictions.
 * Improved frontend access handling for hidden products, including redirect and
   custom message modes.

#### 2.3.1

 * Date: July 17 2025
 * Improved compatibility with managed hosting environments.

#### 2.3

 * Date: June 26 2025
 * Improved compatibility with WooCommerce’s term cache.

#### 2.2.2

 * Date: May 20 2025
 * Fixed a bug that prevented the plugin from hiding categories correctly.
 * Confirmed compatibility with WordPress 6.8.1

#### 2.2.1

 * Date: Jan 21 2025
 * Compatibility with Woocommerce 9.6.0 checked
 * Fixed – Missing translation files added.
 * Adjusted the permissions of the JSON settings file to allow admin users to download
   it.

#### 2.2

 * Date: Jan 20 2025
 * Security improvements to counter possible arbitrary content deletion attacks,
   enhancing the plugin’s overall protection.
 * Added translations for Spanish, German, French, and Portuguese to make the plugin
   more accessible to a broader audience.
 * Improvements to the way custom messages are displayed on the frontend, ensuring
   a more seamless and user-friendly experience.
 * Enhanced filters to hide products from restricted categories in cross-sell product
   blocks.

#### 2.1.1

 * Date: Sep 17 2024
 * Fixed a CSS line that was overriding the body color in some themes

#### 2.1.0

 * 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

#### 2.0.2

 * Date: Apr 30 2024
 * Code Improvements

#### 2.0.1

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

#### 2.0.0

 * 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.

#### 1.3

 * 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.

#### 1.2

 * 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.

#### 1.1

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

#### 1.0

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

## Meta

 *  Version **3.0.1**
 *  Last updated **5 n wagguren ago**
 *  Active installations **300+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.0.7**
 *  PHP version ** 8.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/)
 * Tags
 * [category](https://kab.wordpress.org/plugins/tags/category/)[hide](https://kab.wordpress.org/plugins/tags/hide/)
   [products](https://kab.wordpress.org/plugins/tags/products/)[user role](https://kab.wordpress.org/plugins/tags/user-role/)
   [woocommerce](https://kab.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://kab.wordpress.org/plugins/hide-category-by-user-role-for-woocommerce/advanced/)

## Ratings

 4.3 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/reviews/)

## Contributors

 *   [ ThemeSupport ](https://profiles.wordpress.org/themesupport/)

## Support

Issues resolved in last two months:

     1 out of 1

 [View support forum](https://wordpress.org/support/plugin/hide-category-by-user-role-for-woocommerce/)