• Hi There,

    Great plugin. Thanks for this.

    I created a cusyom post type using following code.

    /* custom post - traveller posts */
    add_action( 'init', 'traveller' );
    function traveller() {
      register_post_type( 'traveller',
        array(
          'labels' => array(
            'name' => __( 'Traveller Posts' ),
            'singular_name' => __( 'Traveller Post' )
          ),
          'public' => true,
          'has_archive' => true,
        )
      );
    }

    And I created a role called ‘Traveller’ using this plugin.
    When a traveller user login to the site, he is able to post, edit and delete the both default posts and custom type post ‘Traveller posts’ for now.
    Actrually I want to allow create, edit, delete and upload for ‘Traveller posts’ only if the user is in ‘Traveller’ role.
    And restrict to edit, delete, create default post for user if the user is in ‘Traveller’ role.

    How can I do that?

    https://www.ads-software.com/plugins/capability-manager-enhanced/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to restrict default post and allow custom post type posting only for a role’ is closed to new replies.