title: How to allow custom post type (add, edit, delete) for subscriber users in wordpress
body: <p>This is my custom post type code and i want to give add, edit, delete permission to subscribers user.</p>
  
  <p>How to allow custom post type (add, edit, delete) for subscriber users in wordpress. Please help me guys Thanks in advance.        </p>
  
  <pre><code>add_action( 'init', 'realestate_init' );
          function realestate_init() {
          $labels = array(
              'name'               =&gt; _x( 'Realestates', 'post type general name', 'your-plugin-textdomain' ),
              'singular_name'      =&gt; _x( 'Realestate', 'post type singular name', 'your-plugin-textdomain' ),
              'menu_name'          =&gt; _x( 'Realestates', 'admin menu', 'your-plugin-textdomain' ),
              'name_admin_bar'     =&gt; _x( 'Realestate', 'add new on admin bar', 'your-plugin-textdomain' ),
              'add_new'            =&gt; _x( 'Add New', 'realestate', 'your-plugin-textdomain' ),
              'add_new_item'       =&gt; __( 'Add New Realestate', 'your-plugin-textdomain' ),
              'new_item'           =&gt; __( 'New Realestate', 'your-plugin-textdomain' ),
              'edit_item'          =&gt; __( 'Edit Realestate', 'your-plugin-textdomain' ),
              'view_item'          =&gt; __( 'View Realestate', 'your-plugin-textdomain' ),
              'all_items'          =&gt; __( 'All Realestates', 'your-plugin-textdomain' ),
              'search_items'       =&gt; __( 'Search Realestates', 'your-plugin-textdomain' ),
              'parent_item_colon'  =&gt; __( 'Parent Realestates:', 'your-plugin-textdomain' ),
              'not_found'          =&gt; __( 'No realestates found.', 'your-plugin-textdomain' ),
              'not_found_in_trash' =&gt; __( 'No realestates found in Trash.', 'your-plugin-textdomain' )
          );
          $args = array(
              'labels'             =&gt; $labels,
              'description'        =&gt; __( 'Description.', 'your-plugin-textdomain' ),
              'public'             =&gt; true,
              'publicly_queryable' =&gt; true,
              'show_ui'            =&gt; true,
              'show_in_menu'       =&gt; true,
              'query_var'          =&gt; true,
              'rewrite'            =&gt; array( 'slug' =&gt; 'realestate' ),
              'capability_type'    =&gt; 'post',
              'has_archive'        =&gt; true,
              'hierarchical'       =&gt; false,
              'menu_position'      =&gt; null,
              'supports'           =&gt; array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
          );
          register_post_type( 'realestate', $args );
      }
      // End register custom post type
  </code></pre>