Restrict group to posting in specific categories

[ad_1]

Plugin Author
Kento

(@proaktion)

Hi!

Thanks for posting this, it’s a case that isn’t covered yet OOTB by Groups or any of its extensions.

One approach you could take is to limit the categories offered when someone is editing a post based on their group membership. You’d have to use a filter to limit the categories offered, and could use Groups’ API to check for the user’s membership.

For example, use the list_terms_exclusions filter hook and exclude categories that the user should not be able to choose while editing a post. On the Examples documentation page you can see how to check for a user’s membership. Also useful as a source are the repositories related to Groups.

I hope this helps, feel free to ask if you have any questions!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer