Support » Plugin: Members » Restrict by category?

  • Hi,
    Is it possible to use the plugin to restrict a user so they can only post to specific categories?

    Ideally I’d like to be able to assign specific categories to a user type.

    Thanks very much,
    will

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Tadlock

    (@greenshady)

    I once built such a feature for a client. It’s not easily done because of a lot of the hard-coded stuff in WordPress. The plan was to release this as an add-on, but the Gutenberg block editor has completely changed how this is handled now.

    In short, no, this isn’t possible with Members.

    However, I’ll keep this on my list of potential add-ons in the future. It’s not likely something that I’ll have time to look more into until at least 2020 though. In the meantime, I recommend just searching around to see if there are plugins that might do that.

    Plugin Author Justin Tadlock

    (@greenshady)

    I actually just had a really good idea about how to make this possible in an add-on plugin. I’ll report back here to let you know if I work it out and decide to build it.

    It wouldn’t be exactly how you describe, but it would take a different approach by not allowing specific roles to *assign* categories (admins could assign categories but not contributors, for example).

    Thanks very much Justin. If you make it work let me know. But I appreciate the answer in either case.

    best,
    will

    Plugin Author Justin Tadlock

    (@greenshady)

    So, I went ahead and finished this add-on plugin, which is now available as part of the Members – Pro package here: https://themehybrid.com/plugins/members-category-and-tag-caps

    This add-on doesn’t directly allow restricting users/roles to a specific category, at least not without manual intervention. Basically, it splits the category capabilities into:

    manage_categories
    edit_categories
    delete_categories
    assign_categories

    That last capability is what allows users to assign a category to a post. So, you could assign whatever categories you want (as an administrator, for example) to a post but not allow specific user roles to assign categories at all. They wouldn’t have any control over that.

    If that’s something that sounds good to you, the add-on plugin is available. If not, that’s cool too. I’ve had this idea on my to-do list for a while. I just didn’t think of its applicability to this particular situation. Anyway, it was nice to go ahead and get it coded out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.