Unify the roles and caps?

I installed several plugins(buddypress-docs,achievement,bbpress), each one create capabilities for their own post_type.
I would prefer to make all roles and capabilities unified into one system, Is there a solution to overwrite all existing caps and control all post_types? Eventually I would like to organize users by group, and assign each user group different caps across all types.

Related posts

Leave a Reply

2 comments

  1. Members plugin will do exactly what you’re looking for. I use it in conjuntion with manually adding caps:

    // Manipulating a role's capabilities -> http://codex.wordpress.org/Roles_and_Capabilities#edit_posts
    function manipulate_role(){
       $role = get_role( 'Master Editor' ); // pick up role to edit
    
       $role->add_cap( 'edit_users' );
       $role->remove_cap( 'update_core' );         
    }
    add_action( 'admin_init', 'manipulate_role');
    

    Maybe it’s just me but I found that mapping your own cpt’s is the worst idea ever…

    Download Map Cap for that instead of coding your “maps”. WP has a ways to go with roles and caps and you’ll never be able to write code that works as good or better than what Map Cap can accomplish with a few checkboxes.