• Hi guys,

    So I’m developing this new site that deals with a custom post type interacting with a new user role, which I’m modelling after level 0, but with access to this one post type thrown in.

    remove_role('installer');
    add_role('installer', 'Installer', array(
    	'read' => true,
    ));
    
    $role = get_role( 'installer' );
    	$role-> add_cap( 'edit_companys' );
    	$role-> add_cap( 'edit_company' );
    	$role-> add_cap( 'delete_companys' );
    	$role-> remove_cap( 'edit_others_company' );
    	$role-> remove_cap( 'edit_published_company' );
    	$role-> remove_cap( 'publish_company' );
    	$role-> remove_cap( 'delete_others_companys' );

    Is what I’ve come up with so far, however when ‘installers’ log in, they can see Edit, Quick Edit, Preview as the Options, regardless of whether they’ve created it or not. Ideally I don’t want installers to be able to view anything that they haven’t created whilst in ‘pending’ state

    Does anyone have any ideas? the site is at Solar Monster – username and password both ‘test’ for now…

    Any and all help would be appreciated!
    Aaron

  • The topic ‘New User Role, Custom Post Type, 'Contributors' being able to view 'Pending'’ is closed to new replies.