This repository was archived by the owner on Jul 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpost-type-all.php
73 lines (73 loc) · 2.26 KB
/
post-type-all.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
return [
'active' => true,
'type' => 'cpt',
'name' => 'book',
'supports' => [
'title',
'editor',
'comments',
'revisions',
'trackbacks',
'author',
'excerpt',
'page-attributes',
'thumbnail',
'custom-fields',
'post-formats',
],
'labels' => [
'has_one' => 'Book',
'has_many' => 'Books',
'text_domain' => 'sage',
'overrides' => [
'name' => 'Books',
'singular_name' => 'Book',
'menu_name' => 'Books',
'name_admin_bar' => 'Book',
'add_new' => 'Add New',
'add_new_item' => 'Add New Book',
'edit_item' => 'Edit Book',
'new_item' => 'New Book',
'view_item' => 'View Book',
'view_items' => 'View Books',
'search_items' => 'Search Books',
'not_found' => 'No books found.',
'not_found_in_trash' => 'No books found in Trash.',
'parent_item-colon' => 'Parent Books:',
'all_items' => 'All Books',
'archives' => 'Book Archives',
'attributes' => 'Book Attributes',
'insert_into_item' => 'Insert into book',
'uploaded_to_this_item' => 'Uploaded to this book',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use featured image',
'filter_items_list' => 'Filter books list',
'items_list_navigation' => 'Books list navigation',
'items_list' => 'Books list',
],
],
'config' => [
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'has_archive' => true,
'hierarchical' => false,
'menu_position' => NULL,
'can_export' => true,
'capability_type' => 'post',
'taxonomies' => [
'category', 'post_tag'
],
'rewrite' => [
'slug' => 'book',
'with_front' => true,
'feeds' => true,
'pages' => true,
],
],
];