Groups Restrict Categories

Groups Restrict Categories features access restrictions for categories, tags and other WordPress taxonomies, including support for custom post types and taxonomies.

This extension based on Groups is useful if you want to restrict access to whole categories and their related posts. Beyond categories, it also allows to control access to other taxonomies like tags or those that are provided by third-party extensions in the form of custom post types and taxonomies. Menu

If you are using the popular WooCommerce, you can use this extension to restrict access to products by Product Categories or Product Tags. This can be useful if you have certain products which only specific customer groups should be able to purchase, like exclusive products and packages for wholesale and distributors.

Documentation

Read more about how this plugin is used in the Documentation.

Download

This premium extension is available in the Shop.

Screenshots

New access restriction options

Edit Category

Enabling access restrictions by taxonomy

Taxonomies

216 Responses to Groups Restrict Categories

  1. Tolga Özbey September 29, 2023 at 8:06 am #

    I have noticed that you have not responded to my email. Additionally, I have observed that you have deleted the question I posted on the plugin page. I must express my disappointment with this plugin.

    I would like to initiate the process of returning the plugin that I purchased last night.

    • Kento September 29, 2023 at 2:49 pm #

      We provide support as outlined on the Support page, we do not provide support via email. For any support requests, please use the Groups Restrict Categories support area to forward your request and our team will help you further. If you would like to request a refund, you can also submit a request for that there.

      Regarding your submitted question, we do not delete questions posted here, but they remain pending until someone from our team can answer them, so that might be what happened to yours.

  2. togy September 27, 2023 at 7:50 am #

    Hello,

    Pre-sale question:

    Can I only show products with the Y tag to members of group X? I want to hide all products on the website from members of group X, they should only see products that have been assigned the Y tag.
    Other members should be able to see products with the Y tag as well. Is it possible to do this with this plugin? Thanks 🙂

    • Kento September 29, 2023 at 2:44 pm #

      Hi,

      Are you planning on hiding the shop completely from the public, or are you going to show all products to everyone but will hide them once someone is logged in?

      As for your question regarding the use of a tag, you could protect all products with a generic tag, and grant access to certain products using a specific tag.

      Example:

      – Create a category “Protected” and assign all products in the shop to that group.
      – Create a group “Protected”, use that group to protect the “Protected” product category.
      – Create a category “Members”, assign that category to a set of products.
      – Create a group “Members”, use that group to protect the “Members” product category.
      – Add one or more users to the “Members” group.
      – Log in as that user, that user should be able to see only products in the “Members” group.

      Cheers

  3. Allan July 6, 2023 at 5:35 pm #

    What is the current version of Groups Restrict Categories plugin? I have 2.1.1 installed. Has it had any updates since?

  4. Rajdeep Singh December 9, 2021 at 11:58 am #

    What will happen if user clicks on a restricted product category being displayed on website?
    1. goto 404
    2. we can redirect to a specific page like login or register?

    please let me know, before i purchase.

  5. SE May 12, 2020 at 6:23 pm #

    Hello,
    On the Groups page in the WP repository, under Access Control it states: “If access to a post is restricted to one or more groups, only users who belong to one of those groups may view the post.” However I’ve heard the Restrict Categories add-on uses AND logic, so that a user must belong to ALL groups that a category is assigned to, before the user can see products in that category. Is this correct?

    • Kento May 14, 2020 at 6:20 pm #

      Hi,

      Please have a look at the Access Control section in Groups’ documentation and the specific documentation here for Groups Restrict Categories, you will find up-to-date information on everything there. Regarding your specific question, it would be members of any of the groups that would be able to access those in the category. You will find this documented here under the heading “Restricting an existing Category”.

      Cheers

  6. Chuka November 6, 2019 at 8:41 am #

    I want to restrict access to a sction of the website like the flash sale and enable it only at intervals. Can this plugin do it?

  7. Paul August 20, 2019 at 7:46 am #

    Hi,
    plugin Restrict Categories is working with Woocommerce categories?
    Customers from a specific Group e.g. Premium won’t see hidden category on the product category list?

  8. BB June 27, 2019 at 11:23 pm #

    Hi there. I was wondering if the Restrict Categories works with multiple categories?
    I have a site with multiple groups.
    A user can be assigned to multiple groups or only a single group (depending on relationship).
    I have some products that have multiple categories/groups.
    It is looking like when I have multiple categories and multiple groups assigned to the user, the user will not see anything.
    Is this a bug or is this the expected outcome?

    • Kento June 28, 2019 at 8:54 pm #

      Hi there!

      Users can be assigned to any number of groups, there is not limitation on that whatsoever. I highly recommend to review the section on Access Control for Groups itself and Access Control with Groups Restrict Categories in particular. When you restrict access using more than one group, members of any of those groups will be able to access to corresponding resource (post, category, …).

      If you still need further help, our premium support team will be happy to help you further. In that case, please use this section to post your support request.

      Cheers

  9. Victoria Evans June 17, 2019 at 3:40 am #

    Hi guys
    I am trying to only use this plugin for Product Categories on WooCommerce, I have Groups, Groups WooCommerce, and your Groups Protected Categories. Do I have to set up any capabilities? I am really confused as to what they are and how they are used for Admin, and the various user groups I have created.

    TIA
    Tori

    • Kento June 19, 2019 at 9:48 am #

      Hi Tori,

      You don’t need to set up any capabilities, just create a group that you want to use and protect the product category with that group. Please have a look at the documentation section on Access Control, it’s very easy if you follow the example.

      If you need further help, please make sure to post in the premium support section here where our team will be happy to assist you.

      Cheers

  10. Filip February 27, 2019 at 7:37 am #

    I have a pre sales question:

    * Are members still able to post in categorys they are not allowed to? (protected)
    * Will posts be automatically hidden when they belong to a category or will the title still be visible through search function?

    • Kento March 5, 2019 at 9:45 am #

      Hi Filip,

      If a member does not belong to a group that restricts a category, unless they have appropriate permissions to manage groups, they won’t be able to use the category to assign to a post. For example, take an editor who can create posts on the back end, the editor won’t be able to select the protected category unless the editor belongs to the group.

      The posts and titles will be protected as long as the search functions go through the normal API (i.e. unless your search directly accesses the database or bypasses filters). For example, when you need to protect product categories and products and use it with WooCommerce Product Search it works fine, it also works fine with Search Live.

      Cheers

  11. Filip February 27, 2019 at 7:31 am #

    Dear,

    As I protect the category, will the title and pist be automatically protected as well for other groups? Which is very important for me

    • Kento March 5, 2019 at 9:21 am #

      Hi Filip,

      The access restrictions require that the user belongs to the specific group, so belonging to any other group will not open access. You will find details on that on this documentation page.

      Cheers

  12. Vid February 18, 2019 at 2:35 pm #

    Hello.

    I am thinking of buying your plugin to restrict post categories. I have to create a page where user can post only to one category. Does your plugin support that.

    I have 30+ users. I had to create 30+ categories and I want the user to be able to select only the category I allow so this category is then posted on subpage. I hope I am making it clear.

    Thank you

    • Kento February 25, 2019 at 9:44 am #

      Hi Vid,

      It might work although I’m not entirely sure if it will, as it depends on what you will be using to offer those categories to the user. If what you will be using to allow the user to post and select a category uses the WordPress API to obtain categories, then the selection would be restricted to those that the user has access to. In other words, if what you are using is doing it the right way, the categories would be restricted. I hope this helps a bit, maybe just give it a try and if it doesn’t you can just ask for a refund which wouldn’t be a problem.

      Cheers

  13. Mark Lopez November 21, 2018 at 3:34 pm #

    Hello,

    We’re using your plugin “Groups Restrict Categories”. However, after going live with the site, the redirection for restricted user has stopped working. Can you please assist us ASAP?

    Thanks,
    Lopez

  14. sarte October 23, 2018 at 5:15 am #

    Can this plugin be used to create group based views for different user groups ie.

    Category A – restricted access for Group A includes Product A and Product B
    Category B – free access for unregistered users includes Product A, Product B and Product C

  15. Jim June 19, 2018 at 6:29 pm #

    Hi,

    I’ve downloaded the Groups plugin for a community website I’m launching and it looks like restrict categories is the extension I need, however the question I want to ask is – What does the viewer see when they click on a link in the main menu of my site (in this case the blog) which is to be restricted?.

    Is it a content restricted message and if so where do they login?
    Do I setup on password for people I want to have access and to all of the posts in that category?
    Can I setup a Call to Action to tell viewers they too can have access if they support/donate to the campaign?

    I’d like to take advantage of the multiple licence offer but I’d like to see it working first ?

    Regards,
    Jim.

    • Kento August 1, 2018 at 4:56 pm #

      Hi Jim,

      Protected posts will result in a 404 upon unauthorized access, this applies to posts restricted directly as for those who are restricted through a category. If you try to access a restricted category, you would get a 404, too.

      Menu items that relate directly to a post etc. normally won’t be shown when they are protected, unless you use custom links which will always show.

      If you want to use an alternative process as for example direct unauthorized access to a particular page, you can use the free Groups 404 Redirect – you could use it to point them to a page where you can ask them to sign up etc.

      As for the multiple license, you can try it out and our refund policy will allow you to ask for a refund if it doesn’t fit after trying it. We’re pretty flexible as we don’t see any use in forcing people to pay for something they honestly wouldn’t use 🙂

      It’s been a while since you asked the question and unfortunately I didn’t get to answer it before but I hope my reply is still of use to you or others.

      Cheers

  16. Luke February 2, 2018 at 6:39 pm #

    Hello,

    My company has been using the implementation of restriction by category that has been present in the Groups plugin for years. The functionality has now been labeled “legacy”, and we are concerned that the introduction of this add-on will lead to removal of the legacy functionality, which will break several of our clients’ sites. Will support for the legacy system be removed in a future update and, if so, what migration path do we have?

    Thanks,
    Luke

    • antonio February 6, 2018 at 4:47 pm #

      Hi Luke,
      With Groups 2.x a new model of access control is introduced where various post types are restricted by groups instead of capabilities. Here you have a migration guide. But for now we will continue with both models (groups and capacities).
      Kind Regards,
      Antonio B.

      • Lennert August 29, 2018 at 5:07 pm #

        Hi Antonio,

        I’m trying to restrict Group access toWooCommerce Product Categories. Looked at the Migration Guide but there it only discusses Pages. Can you tell me how to make it work for Product Categories?

        Lennert

        • Kento August 29, 2018 at 7:41 pm #

          Hi Lennert,

          For Products it’s the same procedure as for Pages or any other post type. You can follow the same steps there really.

          Cheers

  17. Lee January 3, 2018 at 10:09 am #

    Hi Anonio, thanks for your response!

    I’d initially let the subscription lapse because it’s for a client site and lets just say getting the client paying annually for a plugin etc is a hassle I’m not up to at the moment. ;). As the old plugin was still working (apart from the huge error logs after woocommerce went to v3) I decided to let it ride for a while. However those logs became a pain as I had to delete them everty night (sometimes twice in one day) for fear it would suck up all the resources.

    I decided to bite the bullet yesterday and just renew the subscription – if it was still same version then I could get you to take a look at it and hopefully solve things. Anyway it was 2 versions ahead of what I had and when I overwrote the old one it solved the problem. Yay! No more huge error logs!

    As it has saved me a lot of hassle I won’t bother getting the cost back from the client this time, I’ll prepare myself for that eventuality next time it runs out again. 😉

    (Awesome plugin by the way!. )

    Regards
    Lee

  18. Lee January 1, 2018 at 5:11 am #

    Hello

    My posts seem to have disappeared and I can’t be bothered typing them again. Can you tell me what version the Groups Restrict Categories Plugin is on at the moment. I have version 2.01 but the subscription ran out a couple of months ago. Though I have the updater plugin installed it does not say that there is a new version.

    I want to renew it but there is a problem with it so I need to know if it has been updated and the problem fixed – or it will be fixed (I can’t post this question in the forum because no access and I can’t see anyway to contact you to ask.)

    Thanks

    • antonio January 3, 2018 at 9:24 am #

      Hi Lee,
      Sorry for the delay.
      The last version is the 2.1.0, if this is not your version, please download the last version from the downloads page. If the problem persists, please send me access to antonio[at]itthinx[dot]com indicating this conversation and attaching the debug file and I’ll have a look at your settings.
      Kind Regards,
      Antonio B.

  19. Lee January 1, 2018 at 4:12 am #

    Hiya

    Further to the previous comment, searching on Google just in case you haven’t updated the plugin and fixed things, this might solve the issue and save you some work (found it at the bottom of this thread: https://stackoverflow.com/questions/43374133/woocommerce-notice-product-type-was-called-incorrectly-product-properties-shou ) though I’m not sure quite where to locate things so guess I’ll have to search the files and hope for the best but as mentioned if you have fixed the plugin anyway I’ll just renew it 🙂

    Quote/
    “The product_type property is deprecated. Use get_type() to get internal type.

    So you need to change this:

    $product->product_type;

    to this:

    $product->get_type();
    /unquote

  20. Lee January 1, 2018 at 3:48 am #

    Hello

    I’ve been using Groups Restrict Categories but the subscription has now expired. I would have renewed it but for the fact that it has started to generate huge error logs that I have to delete everyday. This has something to do with woocommerce and I think it started when it got to version 3.
    Basically woocommerce generates an error file everytime someone adds something to the cart – there is no indication that anything is amiss apart from the error file and it only happens when your plugin is active. Here is the message (it also shows it multiple times for each single instance of adding 1 peoduct into cart so you can imagine how big the file is each night – between 6 and 10 gigs)

    “id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘wp_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Cart_Session->get_cart_from_session, WC_Product_Variation->is_purchasable, WC_Product->is_purchasable, apply_filters(‘woocommerce_is_purchasable’), WP_Hook->apply_filters, call_user_func_array, Groups_Restrict_Categories::woocommerce_is_purchasable, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.”

    As mentioned it only does it with your product and only mentions the restrict categories product. I am using version 2.01 of the product and what I need to know is if this problem has been fixed in a later version during the last couple of months and if so I will renew the subscription. Not much point if it hasn’t been fixed.

    I’m using Avada theme (latest) and latest WordPress version and Woocommerce 3.2.6)

    Cheers

  21. alexandre August 14, 2017 at 8:09 am #

    Hello
    I’m using the groups restrict categories add-on and I would like to know if parent categories can be used to block child categories.

    Thanks

    • Kento August 17, 2017 at 3:26 pm #

      Hi,

      The parent category access restriction does not imply restriction of its child categories. If you want to protect the child categories, please make sure to apply the same restrictions as in the parent category.

      Cheers

  22. Sergio August 8, 2017 at 9:41 am #

    Hola,

    If a post / page is restricted to a group_A, then only the users on this group_A or group_A_1 / group_A_2 … (children of group_A) can access this post / page.

    Using the categories plugin, if I create a new post and assign it the category group_A, users of group_A_2 for example (that has assigned the category group_A_2), will be able to read it?

    I do not know if I explained well.

    Thanks.

    • antonio August 8, 2017 at 3:47 pm #

      Hi Sergio,
      That’s right. This works like the post/page groups restriction.
      Kind Regards,
      Antonio B.

  23. Walter May 24, 2017 at 8:07 am #

    Hi Antonio,

    i use WC (German Market) with the Plugin “Deposit for WooCommerce Products” (https://de.wordpress.org/plugins/pfand-deposit-for-woocommerce-products/). Is it possible, to disable the deposit for specific Customer Groups? The deposit is a custom taxonomy.

    • antonio May 25, 2017 at 8:28 am #

      Hi Walter,
      If Deposit is a custom taxonomy, this should work fine. If a product is associated to a restricted deposit, then this product will be restricted.
      Kind Regards,
      Antonio B.

  24. Paul May 14, 2017 at 12:15 pm #

    Hi there,

    I have a mature WordPress Parish Council website up and running. I have been asked to create a restricted area that allows Councillors of the Parish to access specific content just for them.

    The Restricted Categories plugin seems to fit the bill but I do have a couple of questions please.

    1) Once installed the plugin won’t affect posts already created? That is to say I won’t have to go back through everything and tick/untick/reassign previous posts.
    2) The documentation doesn’t mention how members access the restricted category. Is there a group login page? Is it done through the User accounts? How do I allow a group of 9 Councillors all access the same posts?

    Thank you for your help.

    Cheers…Paul

    • antonio May 16, 2017 at 11:03 am #

      Hi Paul,
      To restrict access to pages, you need the Groups plugin, please have a look at the documentation page.
      If you need to restrict pages based on their category, then Groups Restrict Categories is your plugin.
      1.- The posts/pages already created will not be modified, so they will remain open access. When you install a new plugin, I recommended that you always make a full backup.
      2.- From the Groups documentation page you can see how to use this plugin. Using the shortcodes you can create your own pages.
      Kind Regards,
      Antonio B.

  25. Joel Worsham February 14, 2017 at 4:37 pm #

    Is it possible to not give the user a 404 if restricted, but rather redirect to the signup page like when viewing restricted pages?

    • antonio February 16, 2017 at 8:29 pm #

      Hi Joel,
      You have available the Groups 404 redirect plugin.
      Kind Regards,
      Antonio B.

  26. James February 13, 2017 at 6:55 pm #

    Can I use this plugin to control access to media files?

    • antonio February 14, 2017 at 9:44 am #

      Hi James,
      If you want restrict access to file, please have a look at Groups File Access.
      Kind Regards,
      Antonio B.

  27. Ben February 13, 2017 at 6:47 pm #

    Thank you. Do you offer any money back guarantee?

  28. Ben February 11, 2017 at 3:39 pm #

    Hi, I’m wondering if your plugin can do the following:

    One User – member of 2 groups – A and B
    Post with 2 categories X and Y

    Group A allows read access to category X
    Group B allows read access to category Y

    Can your plugin enforce BOTH? So that the post with X and Y categories can only be viewed by a user with BOTH access, and not just one?

    Thank you

    • antonio February 13, 2017 at 11:32 am #

      Hi Ben,
      Yes, you can do it with this plugin.
      Kind Regards,
      Antonio B.

      • chaya July 31, 2018 at 2:59 pm #

        Hi, is it possible to make a post in X and Y, so a user with EITHER x OR y can view?

        • Kento August 1, 2018 at 7:41 am #

          Hi,

          If you restrict a post by two groups X and Y, any user belonging either to group X or group Y will be able to access it.

          Cheers

  29. snecz December 13, 2016 at 8:23 am #

    I try to find a solution for this functionality my WooCommerce shop: Some of products can be watched in the shop but can ONLY be purchased when somebody buy at least one other product.

    So for example I have: Category A: Product A1, Product A2, Product A3 Category B: Product B1, Product B2, Product B3

    All products have prices and are not gifts.

    I want to: Products that can be be sold with no conditions: Product A1, Product A2 Products that can be sold ONLY when Product A1 or/and Product A2 is purchased: Product A3, Product B1, Product B2, Product B3

    There’re Product Bundles And Chained Products plugins but I think both of them lack of something. Is Groups Restrict Categories suitable for this task?

    • antonio December 20, 2016 at 9:40 am #

      Hi snecz,
      sorry, the plugin hasn’t this functionality.
      Kind Regards,
      Antonio B.

  30. Jerome C. November 1, 2016 at 9:41 pm #

    Hello,

    I posted a request here some time ago but never got a reply.

    Basically, there is an issue where the title of a restricted post is displayed in the search results, even if the user does not have access permission the the post’s category. When the user clicks on the result, they are redirected to the Not Found page.

    Since my initial request, I have found that the error might be caused by a Search plugin. At the time, I was using Relevanssi. Once Relevanssi was disabled, Groups Restrict Categories started behaving as it should: the restricted posts’ titles were no longer showing up in the Search results page.

    I also tried using Ajax Search Lite and the same problem occurred.

    Is this a bug in GRC? If not, would you be able to recommend another search plugin that will work with GRC and not display the title of restricted posts?

    Thanks in advance!

    • antonio November 3, 2016 at 7:56 am #

      Hi Jerome,
      Have you try our Search Live plugin ?
      Kind Regards,
      Antonio B.

  31. Jerome C. September 20, 2016 at 10:35 pm #

    Hello,

    I am using Groups and Groups Restrict Categories to restrict access to user groups through categories on our Intranet.

    It works well, for the most part. For example, users in the Project Manager group are unable to see posts with the Sales category, while users in the Sales Manager group can. So far so good.

    The problem is that if a Project Manager happens to search for an expression that is found in the title of a post assigned to the Sales category, then that post’s title is displayed in the search results page, even though that user should not have access to it. Only the title is displayed; the excerpt is not. If that Project Manager clicks on the title (it has a hyperlink to the post), then they reach the “Not found page”, which is good.

    Note:
    Our search results page normally displays the Title and the Excerpt of the posts found, as long as the user has access to them.

    My guess is that there is a function somewhere that may override the Groups Restrict Categories “title” filter somehow. But I haven’t been able to find anything like that so far.

    I wonder if you can give me some pointers on how to find out why restricted post titles can be searched by a user who does not belong to the correct group and who does not have the correct read access associated to the post’s category either.

    Any help would be greatly appreciated!

    • Kento December 22, 2016 at 8:04 am #

      Hi Jerome,

      Is it possible that you have a customized search which bypasses the way posts are obtained (e.g. directly polls the database)? Do you use any particular search plugin? Actually, if you’d like to give it a try, you could also install our Search Live plugin and test its widget to see if these posts show up as well.

      Please let me know if that helps.

      Cheers

Leave a Reply

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share