map_CPT_book
My Awesome Plugin Custom Post Type => Book
// Register Custom Post Type function map_register_cpt_book() { $labels = array( 'name' => _x( 'Books', 'Post Type General Name', 'map' ), 'singular_name' => _x( 'Book', 'Post Type Singular Name', 'map' ), 'menu_name' => __( 'Books', 'map' ), 'name_admin_bar' => __( 'Book', 'map' ), 'archives' => __( 'Item Archives', 'map' ), 'attributes' => __( 'Item Attributes', 'map' ), 'parent_item_colon' => __( 'Parent Item:', 'map' ), 'all_items' => __( 'All Books', 'map' ), 'add_new_item' => __( 'Add New Book', 'map' ), 'add_new' => __( 'Add Book', 'map' ), 'new_item' => __( 'New Book', 'map' ), 'edit_item' => __( 'Edit Book', 'map' ), 'update_item' => __( 'Update Book', 'map' ), 'view_item' => __( 'View Book', 'map' ), 'view_items' => __( 'View Books', 'map' ), 'search_items' => __( 'Search Book', 'map' ), 'not_found' => __( 'no such book exists', 'map' ), 'not_found_in_trash' => __( 'Not found in Trash', 'map' ), 'featured_image' => __( 'Featured Image', 'map' ), 'set_featured_image' => __( 'Set featured image', 'map' ), 'remove_featured_image' => __( 'Remove featured image', 'map' ), 'use_featured_image' => __( 'Use as featured image', 'map' ), 'insert_into_item' => __( 'Insert into item', 'map' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'map' ), 'items_list' => __( 'Items list', 'map' ), 'items_list_navigation' => __( 'Items list navigation', 'map' ), 'filter_items_list' => __( 'Filter items list', 'map' ), ); $args = array( 'label' => __( 'Book', 'map' ), 'description' => __( 'This is post type for Book', 'map' ), 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'taxonomies' => array( 'category', ' post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-book', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'map_Book', $args ); } add_action( 'init', 'map_register_cpt_book', 0 );