Feature request: Limit Categories in admin per group (5 posts)

  1. Matthew Muro
    Posted 5 years ago #

    I wrote a bit of code that limits the posts a user can edit/view via the dashboard. The only reason I did this was because every plugin that supposedly could do this for me is either outdated and does not work or is not what I need (see: Bind User to Cat, Limit Categories, Level2Categories, Category Access, Role Scoper, User assign categories).

    Members already has a component that can control which users see individual posts/pages on the front end of a site. I'm not sure how hard it would be to add this feature, but I'd really like to be able to control which groups can edit/view certain posts by category.

    For example, if I create a new group and assign them the Test category, their Edit Posts screen will only show those posts.

    Currently, this is how I'm restricting by user name:

    if ( is_admin() ) {
        global $pagenow;
        if ( $pagenow == 'edit.php' ) add_action( 'admin_head', 'post_RestrictCats' );
    function post_RestrictCats() {
        global $wp_query, $current_user;
        $args = implode(',',array(16,11));
        if( $current_user->user_login == 'test' ) $wp_query->query( 'cat=' . $args );

    Let me know if this is something that might be possible. Thanks.


  2. Matthew Muro
    Posted 5 years ago #

    As a follow-up to this, I decided to write my own plugin to solve this issue.


  3. Marcin
    Posted 5 years ago #

    Hello Matthew,

    I'm going to be building a human rights website, and am interested in your plugin. I just wanted to ask, how long you think you will be upgrading/"supporting" this plugin,

    Thank you,


  4. Matthew Muro
    Posted 5 years ago #

    I've been upgrading and supporting the plugin since I released it. There are more updates coming and I will support it for as long as I can.

  5. Marcin
    Posted 5 years ago #

    Great! Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic