Restrict Categories
Support for custom post types and custom taxonomies (terms) (11 posts)

  1. Jelke Boonstra
    Posted 2 years ago #

    @Matthew Muro,

    In the near past there have bin some questions regarding support for custom taxonomies and terms support.

    Will this feature get included in te near future? I ask this question, because i couldn't find a clear plugin author answer regarding this feature.

    Thanks in advance.


  2. thirdone
    Posted 1 year ago #

    I have also just asked about this. Can we please get an answer on this?

  3. Atlanta
    Posted 1 year ago #

    Interested in how to do this also

  4. harveyharveyharvey
    Posted 1 year ago #

    and me!

  5. Piet Bos
    Posted 1 year ago #

    +1 me too and preferably the possibility to restrict multiple taxonomies.

    As an example I would like to restrict a certain category from a certain user as well as a certain custom taxonomy.

  6. samedgecombe
    Posted 1 year ago #

    +1 for this one too...

  7. Kurisutian
    Posted 1 year ago #


    I'm also searching for a way to use this plugin with custom post types

  8. Kenan
    Posted 1 year ago #


  9. revmitcz
    Posted 1 year ago #

    I found the solution in another post, so I'll share it here..

    in restrict-categories.php, line 39 says :
    if ( $post_type == false || $post_type == 'post' )

    Just add your custom post type(s) :
    if ( $post_type == false || $post_type == 'post' || $post_type == 'my-custom-post' )

    Voila. The original thread I found was here :

    But his suggested code didn't work for me, despite looking perfectly okay in theory :
    if ( $post_type == false || $post_type == 'post' || in_array($post_type, array('my_custom_type_1', 'my_custom_type_2')) ) {

    So, uh.. there ya go. It's a temp fix for now.

  10. marco.marenco
    Posted 1 year ago #

    hi revmitcz,
    i've tried your solution but it doesn't work for me.
    i'm new to WP so i0ve only basic info:
    my_custom_type_1 and _2 are the right string to write? or are they example string?

    maybe someone need the same upgrade.

    i use event manager plugin:

    i would restrictd the categories created with this plugin to a user.
    this categories are custom taxonimies for wp.

  11. asterbird
    Posted 1 year ago #

    Thanks, remitcz! Your solution was perfect for I needed. Too bad the plugin author doesn't add this in.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Restrict Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.