@@ -10,46 +10,46 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | $post_type = array( |
| 13 | - 'class' => 'LSX_TO_Reviews', |
|
| 14 | - 'menu_icon' => 'dashicons-editor-ul', |
|
| 15 | - 'labels' => array( |
|
| 16 | - 'name' => esc_html__( 'Reviews', 'to-reviews' ), |
|
| 17 | - 'singular_name' => esc_html__( 'Review', 'to-reviews' ), |
|
| 18 | - 'add_new' => esc_html__( 'Add New', 'to-reviews' ), |
|
| 19 | - 'add_new_item' => esc_html__( 'Add New Review', 'to-reviews' ), |
|
| 20 | - 'edit_item' => esc_html__( 'Edit Review', 'to-reviews' ), |
|
| 21 | - 'new_item' => esc_html__( 'New Reviews', 'to-reviews' ), |
|
| 22 | - 'all_items' => esc_html__( 'Reviews', 'to-reviews' ), |
|
| 23 | - 'view_item' => esc_html__( 'View Review', 'to-reviews' ), |
|
| 24 | - 'search_items' => esc_html__( 'Search Reviews', 'to-reviews' ), |
|
| 25 | - 'not_found' => esc_html__( 'No reviews found', 'to-reviews' ), |
|
| 26 | - 'not_found_in_trash' => esc_html__( 'No reviews found in Trash', 'to-reviews' ), |
|
| 27 | - 'parent_item_colon' => '', |
|
| 28 | - 'menu_name' => esc_html__( 'Activities', 'to-reviews' ), |
|
| 29 | - ), |
|
| 30 | - 'public' => true, |
|
| 31 | - 'publicly_queryable' => true, |
|
| 32 | - 'show_ui' => true, |
|
| 33 | - 'show_in_menu' => 'tour-operator', |
|
| 34 | - 'menu_position' => 60, |
|
| 35 | - 'query_var' => true, |
|
| 36 | - 'rewrite' => array( |
|
| 37 | - 'slug' => 'review', |
|
| 38 | - 'with_front' => false, |
|
| 39 | - ), |
|
| 40 | - 'exclude_from_search' => false, |
|
| 41 | - 'capability_type' => 'post', |
|
| 42 | - 'has_archive' => 'reviews', |
|
| 43 | - 'hierarchical' => false, |
|
| 44 | - 'show_in_rest' => true, |
|
| 45 | - 'supports' => array( |
|
| 46 | - 'title', |
|
| 47 | - 'slug', |
|
| 48 | - 'editor', |
|
| 49 | - 'thumbnail', |
|
| 50 | - 'excerpt', |
|
| 51 | - 'custom-fields', |
|
| 52 | - ), |
|
| 13 | + 'class' => 'LSX_TO_Reviews', |
|
| 14 | + 'menu_icon' => 'dashicons-editor-ul', |
|
| 15 | + 'labels' => array( |
|
| 16 | + 'name' => esc_html__( 'Reviews', 'to-reviews' ), |
|
| 17 | + 'singular_name' => esc_html__( 'Review', 'to-reviews' ), |
|
| 18 | + 'add_new' => esc_html__( 'Add New', 'to-reviews' ), |
|
| 19 | + 'add_new_item' => esc_html__( 'Add New Review', 'to-reviews' ), |
|
| 20 | + 'edit_item' => esc_html__( 'Edit Review', 'to-reviews' ), |
|
| 21 | + 'new_item' => esc_html__( 'New Reviews', 'to-reviews' ), |
|
| 22 | + 'all_items' => esc_html__( 'Reviews', 'to-reviews' ), |
|
| 23 | + 'view_item' => esc_html__( 'View Review', 'to-reviews' ), |
|
| 24 | + 'search_items' => esc_html__( 'Search Reviews', 'to-reviews' ), |
|
| 25 | + 'not_found' => esc_html__( 'No reviews found', 'to-reviews' ), |
|
| 26 | + 'not_found_in_trash' => esc_html__( 'No reviews found in Trash', 'to-reviews' ), |
|
| 27 | + 'parent_item_colon' => '', |
|
| 28 | + 'menu_name' => esc_html__( 'Activities', 'to-reviews' ), |
|
| 29 | + ), |
|
| 30 | + 'public' => true, |
|
| 31 | + 'publicly_queryable' => true, |
|
| 32 | + 'show_ui' => true, |
|
| 33 | + 'show_in_menu' => 'tour-operator', |
|
| 34 | + 'menu_position' => 60, |
|
| 35 | + 'query_var' => true, |
|
| 36 | + 'rewrite' => array( |
|
| 37 | + 'slug' => 'review', |
|
| 38 | + 'with_front' => false, |
|
| 39 | + ), |
|
| 40 | + 'exclude_from_search' => false, |
|
| 41 | + 'capability_type' => 'post', |
|
| 42 | + 'has_archive' => 'reviews', |
|
| 43 | + 'hierarchical' => false, |
|
| 44 | + 'show_in_rest' => true, |
|
| 45 | + 'supports' => array( |
|
| 46 | + 'title', |
|
| 47 | + 'slug', |
|
| 48 | + 'editor', |
|
| 49 | + 'thumbnail', |
|
| 50 | + 'excerpt', |
|
| 51 | + 'custom-fields', |
|
| 52 | + ), |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | return $post_type; |