@@ -10,50 +10,50 @@ |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | $post_type = array( |
13 | - 'class' => 'LSX_TO_Team', |
|
14 | - 'menu_icon' => 'dashicons-id-alt', |
|
15 | - 'labels' => array( |
|
16 | - 'name' => esc_html__( 'Team', 'to-team' ), |
|
17 | - 'singular_name' => esc_html__( 'Team Member', 'to-team' ), |
|
18 | - 'add_new' => esc_html__( 'Add New', 'to-team' ), |
|
19 | - 'add_new_item' => esc_html__( 'Add New Team Member', 'to-team' ), |
|
20 | - 'edit_item' => esc_html__( 'Edit', 'to-team' ), |
|
21 | - 'new_item' => esc_html__( 'New', 'to-team' ), |
|
22 | - 'all_items' => esc_html__( 'Team', 'to-team' ), |
|
23 | - 'view_item' => esc_html__( 'View', 'to-team' ), |
|
24 | - 'search_items' => esc_html__( 'Search the Team', 'to-team' ), |
|
25 | - 'not_found' => esc_html__( 'No team member found', 'to-team' ), |
|
26 | - 'not_found_in_trash' => esc_html__( 'No team member found in Trash', 'to-team' ), |
|
27 | - 'parent_item_colon' => '', |
|
28 | - 'menu_name' => esc_html__( 'Team', 'lsx-team' ), |
|
29 | - 'featured_image' => esc_html__( 'Profile Picture', 'to-team' ), |
|
30 | - 'set_featured_image' => esc_html__( 'Set Profile Picture', 'to-team' ), |
|
31 | - 'remove_featured_image' => esc_html__( 'Remove profile picture', 'to-team' ), |
|
32 | - 'use_featured_image' => esc_html__( 'Use as profile picture', 'to-team' ), |
|
33 | - ), |
|
34 | - 'public' => true, |
|
35 | - 'publicly_queryable' => true, |
|
36 | - 'show_ui' => true, |
|
37 | - 'show_in_menu' => 'tour-operator', |
|
38 | - 'menu_position' => 75, |
|
39 | - 'query_var' => true, |
|
40 | - 'rewrite' => array( |
|
41 | - 'slug' => 'team', |
|
42 | - 'with_front' => false, |
|
43 | - ), |
|
44 | - 'exclude_from_search' => false, |
|
45 | - 'capability_type' => 'post', |
|
46 | - 'has_archive' => 'team', |
|
47 | - 'hierarchical' => false, |
|
48 | - 'show_in_rest' => true, |
|
49 | - 'supports' => array( |
|
50 | - 'title', |
|
51 | - 'slug', |
|
52 | - 'editor', |
|
53 | - 'thumbnail', |
|
54 | - 'excerpt', |
|
55 | - 'custom-fields', |
|
56 | - ), |
|
13 | + 'class' => 'LSX_TO_Team', |
|
14 | + 'menu_icon' => 'dashicons-id-alt', |
|
15 | + 'labels' => array( |
|
16 | + 'name' => esc_html__( 'Team', 'to-team' ), |
|
17 | + 'singular_name' => esc_html__( 'Team Member', 'to-team' ), |
|
18 | + 'add_new' => esc_html__( 'Add New', 'to-team' ), |
|
19 | + 'add_new_item' => esc_html__( 'Add New Team Member', 'to-team' ), |
|
20 | + 'edit_item' => esc_html__( 'Edit', 'to-team' ), |
|
21 | + 'new_item' => esc_html__( 'New', 'to-team' ), |
|
22 | + 'all_items' => esc_html__( 'Team', 'to-team' ), |
|
23 | + 'view_item' => esc_html__( 'View', 'to-team' ), |
|
24 | + 'search_items' => esc_html__( 'Search the Team', 'to-team' ), |
|
25 | + 'not_found' => esc_html__( 'No team member found', 'to-team' ), |
|
26 | + 'not_found_in_trash' => esc_html__( 'No team member found in Trash', 'to-team' ), |
|
27 | + 'parent_item_colon' => '', |
|
28 | + 'menu_name' => esc_html__( 'Team', 'lsx-team' ), |
|
29 | + 'featured_image' => esc_html__( 'Profile Picture', 'to-team' ), |
|
30 | + 'set_featured_image' => esc_html__( 'Set Profile Picture', 'to-team' ), |
|
31 | + 'remove_featured_image' => esc_html__( 'Remove profile picture', 'to-team' ), |
|
32 | + 'use_featured_image' => esc_html__( 'Use as profile picture', 'to-team' ), |
|
33 | + ), |
|
34 | + 'public' => true, |
|
35 | + 'publicly_queryable' => true, |
|
36 | + 'show_ui' => true, |
|
37 | + 'show_in_menu' => 'tour-operator', |
|
38 | + 'menu_position' => 75, |
|
39 | + 'query_var' => true, |
|
40 | + 'rewrite' => array( |
|
41 | + 'slug' => 'team', |
|
42 | + 'with_front' => false, |
|
43 | + ), |
|
44 | + 'exclude_from_search' => false, |
|
45 | + 'capability_type' => 'post', |
|
46 | + 'has_archive' => 'team', |
|
47 | + 'hierarchical' => false, |
|
48 | + 'show_in_rest' => true, |
|
49 | + 'supports' => array( |
|
50 | + 'title', |
|
51 | + 'slug', |
|
52 | + 'editor', |
|
53 | + 'thumbnail', |
|
54 | + 'excerpt', |
|
55 | + 'custom-fields', |
|
56 | + ), |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | return $post_type; |