• As people go first of all thanks for the info provided in the forum, I have a problem and can not find the solution anywhere.

    It turns out that I need to mimic the same pattern of capabilities that use the wordpress post and to apply it in a post custom type but not to work the same way.

    These are my Capabilities defined in register_post_type:

    'capability_type' => 'car',
    'capabilities' => array(
                    'publish_posts' => 'publish_car',
                    'edit_posts' => 'edit_car',
                    'edit_others_posts' => 'edit_others_car',
                    'delete_posts' => 'delete_car',
                    'delete_others_posts' => 'delete_others_car',
                    'read_private_posts' => 'read_private_car',
                    'edit_post' => 'edit_car',
                    'delete_post' => 'delete_car',
                    'read_post' => 'read_car',
                )

    The purpose of defining a capabilities identical to that of wordpress post is because I need certain users to see this type of post type CAR and send me your post, I will verify and publish.

    These users are contributors and can not publish directly to a post type CAR (ie that a user contributor roles in the scheme of common post) Passing in clean

    User Contributor:
    Create new post type CAR and then sent for review
    Eliminates post type CAR
    Once the public admin post and sent the contributor can not edit.

    My problem is that putting together a capabilities identical, the user is editing the CAR post where these have already been published, and when I encode:

    'capability_type' => 'post',

    this works well
    I need to define that role for post type CAR?
    Members plugins I’m using to create and assign the new Capabilities

The topic ‘Custom Post Type – Capabilities’ is closed to new replies.