custom post type not displayed in Edit Subscription
-
Dear,
I bought the PRO version of the plugin. You offer a support within the 24 hours. I have posted 4 questions 3 days ago on the wedevs.com website where I had to pay for the plugin. And I still didn’t any answer.
I created several custom post types. The ones created with a plugin appears in the Edit Subscription page (to tell how many the user can add of them). When creating myself a custom post type, it is displayed everywhere (admin panel, in other pkuguns, …) but not in the Edit Subscription page. Can you tell me which setting i forgot in my code pleaseadd_action( 'init', 'create_my_post_types', 0); function create_my_post_types() { $labels = array( 'name' => ( 'Vidéos présentation' ), 'singular_name' => ( 'Vidéo présentation' ), 'add_new' => ('Ajouter nouvelle'), 'add_new_item' => ('Ajouter nouvelle vidéo de présentation '), 'edit_item' => ('Modifier vidéo de présentation'), 'new_item' => ('Nouvelle vidéo de présentation'), 'view_item' => ('Voir vidéo de présentation'), 'search_items' => ('Chercher vidéo de présentation'), 'not_found' => ('Pas de vidéo de présentation trouvée'), 'not_found_in_trash' => ('Pas de vidéo de pr trouvée dans la corbeille'), 'parent_item_colon' => ('Parent vidéo de pr:'), 'menu_name' => ('Vidéo de présentation'), ); $args = array( 'description' => 'vidéo de présentation', 'labels' => $labels, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 100, 'menu_icon' => 'dashicons-video-alt2', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'videopresentation' ), 'hierarchical' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'supports' => array( 'editor', 'thumbnail', 'author', ), //'taxonomies' => array( 'category', 'post_tag' ), // add default post categories and tags 'capability_type' => 'videopres', 'capabilities' => array( 'read_post' => 'read_videopres', 'publish_posts' => 'publish_videospres', 'edit_others_posts' => 'edit_others_videospres', 'delete_posts' => 'delete_videospres', 'delete_others_posts' => 'delete_others_videospres', 'read_private_posts' => 'read_private_videospres', 'edit_post' => 'edit_videopres', 'edit_posts' => 'edit_videospres', 'delete_post' => 'delete_videopres', 'delete_published_posts' => 'delete_published_videospres', 'edit_published_posts' => 'edit_published_videospres', 'edit_private_posts' => 'edit_private_videospres', 'read_private_posts' => 'read_private_videospres', ), 'map_meta_cap' => true ); register_post_type('videopresentation', $args); } register_activation_hook( __FILE__, 'create_my_post_types' ); //Add Organization Custom Capabilities to Admin Role add_action( 'admin_init', 'add_event_caps'); function add_event_caps() { $role = get_role( 'administrator' ); $role->add_cap( 'edit_post_videopres' ); $role->add_cap( 'edit_posts_videospres' ); $role->add_cap( 'edit_others_posts_videospres' ); $role->add_cap( 'publish_posts_videospres' ); $role->add_cap( 'read_post_videopres' ); $role->add_cap( 'read_private_events' ); $role->add_cap( 'delete_post_videopres' ); $role->add_cap( 'edit_published_posts_videospres' ); $role->add_cap( 'delete_published_posts_videospres' ); $role->add_cap( 'edit_published_posts_videospres' ); $role->add_cap( 'edit_private_posts_videospres' ); $role->add_cap( 'read_private_posts_videospres' ); } register_activation_hook( __FILE__, 'add_event_caps' );
- The topic ‘custom post type not displayed in Edit Subscription’ is closed to new replies.