Skip to content

Commit 2f85cdd

Browse files
committedOct 31, 2024
Added post types
1 parent 975f7f7 commit 2f85cdd

8 files changed

+571
-448
lines changed
 

‎config/post-types/application.php

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
'application' => [
6+
'label' => 'Applications',
7+
'labels' => [
8+
'name' => 'Applications',
9+
'singular_name' => 'Application',
10+
'add_new' => 'Add New Application',
11+
'add_new_item' => 'Add New Application',
12+
'edit_item' => 'Edit Application',
13+
'new_item' => 'New Application',
14+
'view_item' => 'View Application',
15+
'view_items' => 'View Applications',
16+
'search_items' => 'Search Applications',
17+
'not_found' => 'No applications found',
18+
'not_found_in_trash' => 'No applications found in Trash',
19+
'parent_item_colon' => 'Parent Application:',
20+
'all_items' => 'All Applications',
21+
'archives' => 'Application Archives',
22+
'attributes' => 'Application Attributes',
23+
'insert_into_item' => 'Insert into application',
24+
'uploaded_to_this_item' => 'Uploaded to this application',
25+
'featured_image' => 'Featured image',
26+
'set_featured_image' => 'Set featured image',
27+
'remove_featured_image' => 'Remove featured image',
28+
'use_featured_image' => 'Use as featured image',
29+
'menu_name' => 'Applications',
30+
'filter_items_list' => 'Filter applications list',
31+
'filter_by_date' => 'Filter by date',
32+
'items_list_navigation' => 'Applications list navigation',
33+
'items_list' => 'Applications list',
34+
'item_published' => 'Application published.',
35+
'item_published_privately' => 'Application published privately.',
36+
'item_reverted_to_draft' => 'Application reverted to draft.',
37+
'item_trashed' => 'Application trashed.',
38+
'item_scheduled' => 'Application scheduled.',
39+
'item_updated' => 'Application updated.',
40+
'item_link' => 'Application Link',
41+
'item_link_description' => 'A link to a application.',
42+
],
43+
'description' => 'Frequently Asked Questions (Applications)',
44+
'public' => true,
45+
'hierarchical' => false,
46+
'exclude_from_search' => true,
47+
'publicly_queryable' => false,
48+
'show_ui' => true,
49+
'show_in_menu' => true,
50+
'show_in_nav_menus' => true,
51+
'show_in_admin_bar' => false,
52+
'show_in_rest' => true,
53+
'menu_position' => 60,
54+
'menu_icon' => 'dashicons-editor-help',
55+
'capability_type' => ['application', 'applications'],
56+
// 'capabilities' => [],
57+
'map_meta_cap' => true,
58+
'supports' => [
59+
'title',
60+
],
61+
'taxonomies' => [
62+
],
63+
'has_archive' => false,
64+
'rewrite' => [
65+
// 'slug' => '',
66+
'with_front' => false,
67+
],
68+
// 'query_var' => '',
69+
'can_export' => true,
70+
'delete_with_user' => false,
71+
],
72+
];

‎config/post-types/course.php

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
6+
'course' => [
7+
'label' => 'Course',
8+
'labels' => [
9+
'name' => 'Courses',
10+
'singular_name' => 'Course',
11+
'add_new' => 'Add New Course',
12+
'add_new_item' => 'Add New Course',
13+
'edit_item' => 'Edit Course',
14+
'new_item' => 'New Course',
15+
'view_item' => 'View Course',
16+
'view_items' => 'View Courses',
17+
'search_items' => 'Search Courses',
18+
'not_found' => 'No courses found',
19+
'not_found_in_trash' => 'No courses found in Trash',
20+
'parent_item_colon' => 'Parent Course:',
21+
'all_items' => 'All Courses',
22+
'archives' => 'Course Archives',
23+
'attributes' => 'Course Attributes',
24+
'insert_into_item' => 'Insert into course',
25+
'uploaded_to_this_item' => 'Uploaded to this course',
26+
'featured_image' => 'Featured image',
27+
'set_featured_image' => 'Set featured image',
28+
'remove_featured_image' => 'Remove featured image',
29+
'use_featured_image' => 'Use as featured image',
30+
'menu_name' => 'Courses',
31+
'filter_items_list' => 'Filter courses list',
32+
'filter_by_date' => 'Filter by date',
33+
'items_list_navigation' => 'Courses list navigation',
34+
'items_list' => 'Courses list',
35+
'item_published' => 'Course published.',
36+
'item_published_privately' => 'Course published privately.',
37+
'item_reverted_to_draft' => 'Course reverted to draft.',
38+
'item_trashed' => 'Course trashed.',
39+
'item_scheduled' => 'Course scheduled.',
40+
'item_updated' => 'Course updated.',
41+
'item_link' => 'Course Link',
42+
'item_link_description' => 'A link to a course.',
43+
],
44+
'description' => 'Courses',
45+
'public' => true,
46+
'hierarchical' => false,
47+
'exclude_from_search' => false,
48+
'publicly_queryable' => true,
49+
'show_ui' => true,
50+
'show_in_menu' => true,
51+
'show_in_nav_menus' => true,
52+
'show_in_admin_bar' => true,
53+
'show_in_rest' => true,
54+
'menu_position' => 20,
55+
'menu_icon' => 'dashicons-book-alt',
56+
'capability_type' => ['course', 'courses'],
57+
// 'capabilities' => [],
58+
'map_meta_cap' => true,
59+
'supports' => [
60+
'title',
61+
// 'editor',
62+
// 'trackbacks',
63+
// 'author',
64+
// 'excerpt',
65+
// 'page-attributes',
66+
'thumbnail',
67+
],
68+
'taxonomies' => [
69+
],
70+
'has_archive' => false,
71+
'rewrite' => [
72+
// 'slug' => '',
73+
'with_front' => false,
74+
],
75+
// 'query_var ' => '',
76+
'can_export' => true,
77+
'delete_with_user' => false,
78+
],
79+
];

‎config/post-types/email_account.php

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
'email_account' => [
6+
'label' => 'Email Account',
7+
'labels' => [
8+
'name' => 'Email Accounts',
9+
'singular_name' => 'Email Account',
10+
'add_new' => 'Add New Email Account',
11+
'add_new_item' => 'Add New Email Account',
12+
'edit_item' => 'Edit Email Account',
13+
'new_item' => 'New Email Account',
14+
'view_item' => 'View Email Account',
15+
'view_items' => 'View Email Accounts',
16+
'search_items' => 'Search Email Accounts',
17+
'not_found' => 'No email accounts found',
18+
'not_found_in_trash' => 'No email accounts found in Trash',
19+
'parent_item_colon' => 'Parent Email Account:',
20+
'all_items' => 'Email Accounts',
21+
'archives' => 'Email Account Archives',
22+
'attributes' => 'Email Account Attributes',
23+
'insert_into_item' => 'Insert into email account',
24+
'uploaded_to_this_item' => 'Uploaded to this email account',
25+
'featured_image' => 'Featured image',
26+
'set_featured_image' => 'Set featured image',
27+
'remove_featured_image' => 'Remove featured image',
28+
'use_featured_image' => 'Use as featured image',
29+
'menu_name' => 'Email Accounts',
30+
'filter_items_list' => 'Filter email accounts list',
31+
'filter_by_date' => 'Filter by date',
32+
'items_list_navigation' => 'Email Accounts list navigation',
33+
'items_list' => 'Email Accounts list',
34+
'item_published' => 'Email Account published.',
35+
'item_published_privately' => 'Email Account published privately.',
36+
'item_reverted_to_draft' => 'Email Account reverted to draft.',
37+
'item_trashed' => 'Email Account trashed.',
38+
'item_scheduled' => 'Email Account scheduled.',
39+
'item_updated' => 'Email Account updated.',
40+
'item_link' => 'Email Account Link',
41+
'item_link_description' => 'A link to a email account.',
42+
],
43+
'description' => 'Email Accounts',
44+
'public' => true,
45+
'hierarchical' => false,
46+
'exclude_from_search' => true,
47+
'publicly_queryable' => false,
48+
'show_ui' => true,
49+
'show_in_menu' => false,
50+
'show_in_nav_menus' => false,
51+
'show_in_admin_bar' => false,
52+
'show_in_rest' => true,
53+
'menu_position' => 20,
54+
'menu_icon' => 'dashicons-id',
55+
'capability_type' => ['email_account', 'email_accounts'],
56+
// 'capabilities' => [],
57+
'map_meta_cap' => true,
58+
'supports' => ['title'],
59+
'taxonomies' => [
60+
],
61+
'has_archive' => false,
62+
'rewrite' => [
63+
'with_front' => false,
64+
],
65+
'can_export' => true,
66+
'delete_with_user' => false,
67+
],
68+
];

‎config/post-types/faq.php

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
'faq' => [
6+
'label' => 'FAQs',
7+
'labels' => [
8+
'name' => 'FAQs',
9+
'singular_name' => 'FAQ',
10+
'add_new' => 'Add New FAQ',
11+
'add_new_item' => 'Add New FAQ',
12+
'edit_item' => 'Edit FAQ',
13+
'new_item' => 'New FAQ',
14+
'view_item' => 'View FAQ',
15+
'view_items' => 'View FAQs',
16+
'search_items' => 'Search FAQs',
17+
'not_found' => 'No faqs found',
18+
'not_found_in_trash' => 'No faqs found in Trash',
19+
'parent_item_colon' => 'Parent FAQ:',
20+
'all_items' => 'All FAQs',
21+
'archives' => 'FAQ Archives',
22+
'attributes' => 'FAQ Attributes',
23+
'insert_into_item' => 'Insert into faq',
24+
'uploaded_to_this_item' => 'Uploaded to this faq',
25+
'featured_image' => 'Featured image',
26+
'set_featured_image' => 'Set featured image',
27+
'remove_featured_image' => 'Remove featured image',
28+
'use_featured_image' => 'Use as featured image',
29+
'menu_name' => 'FAQs',
30+
'filter_items_list' => 'Filter faqs list',
31+
'filter_by_date' => 'Filter by date',
32+
'items_list_navigation' => 'FAQs list navigation',
33+
'items_list' => 'FAQs list',
34+
'item_published' => 'FAQ published.',
35+
'item_published_privately' => 'FAQ published privately.',
36+
'item_reverted_to_draft' => 'FAQ reverted to draft.',
37+
'item_trashed' => 'FAQ trashed.',
38+
'item_scheduled' => 'FAQ scheduled.',
39+
'item_updated' => 'FAQ updated.',
40+
'item_link' => 'FAQ Link',
41+
'item_link_description' => 'A link to a faq.',
42+
],
43+
'description' => 'Frequently Asked Questions (FAQs)',
44+
'public' => true,
45+
'hierarchical' => false,
46+
'exclude_from_search' => false,
47+
'publicly_queryable' => true,
48+
'show_ui' => true,
49+
'show_in_menu' => true,
50+
'show_in_nav_menus' => true,
51+
'show_in_admin_bar' => true,
52+
'show_in_rest' => true,
53+
'menu_position' => 20,
54+
'menu_icon' => 'dashicons-editor-help',
55+
'capability_type' => ['faq', 'faqs'],
56+
// 'capabilities' => [],
57+
'map_meta_cap' => true,
58+
'supports' => [
59+
'title',
60+
'editor',
61+
'trackbacks',
62+
'author',
63+
'excerpt',
64+
'page-attributes',
65+
'thumbnail',
66+
],
67+
'taxonomies' => [
68+
'faq-topic'
69+
],
70+
'has_archive' => false,
71+
'rewrite' => [
72+
// 'slug' => '',
73+
'with_front' => false,
74+
],
75+
// 'query_var' => '',
76+
'can_export' => true,
77+
'delete_with_user' => false,
78+
],
79+
];

‎config/post-types/mail_server.php

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
6+
'mail_server' => [
7+
'label' => 'Mail Servers',
8+
'labels' => [
9+
'name' => 'Mail Servers',
10+
'singular_name' => 'Mail Server',
11+
'add_new' => 'Add New Mail Server',
12+
'add_new_item' => 'Add New Mail Server',
13+
'edit_item' => 'Edit Mail Server',
14+
'new_item' => 'New Mail Server',
15+
'view_item' => 'View Mail Server',
16+
'view_items' => 'View Mail Servers',
17+
'search_items' => 'Search Mail Servers',
18+
'not_found' => 'No mail servers found',
19+
'not_found_in_trash' => 'No mail servers found in Trash',
20+
'parent_item_colon' => 'Parent Mail Server:',
21+
'all_items' => 'All Mail Servers',
22+
'archives' => 'Mail Server Archives',
23+
'attributes' => 'Mail Server Attributes',
24+
'insert_into_item' => 'Insert into mail server',
25+
'uploaded_to_this_item' => 'Uploaded to this mail server',
26+
'featured_image' => 'Featured image',
27+
'set_featured_image' => 'Set featured image',
28+
'remove_featured_image' => 'Remove featured image',
29+
'use_featured_image' => 'Use as featured image',
30+
'menu_name' => 'Mail Servers',
31+
'filter_items_list' => 'Filter mail servers list',
32+
'filter_by_date' => 'Filter by date',
33+
'items_list_navigation' => 'Mail Servers list navigation',
34+
'items_list' => 'Mail Servers list',
35+
'item_published' => 'Mail Server published.',
36+
'item_published_privately' => 'Mail Server published privately.',
37+
'item_reverted_to_draft' => 'Mail Server reverted to draft.',
38+
'item_trashed' => 'Mail Server trashed.',
39+
'item_scheduled' => 'Mail Server scheduled.',
40+
'item_updated' => 'Mail Server updated.',
41+
'item_link' => 'Mail Server Link',
42+
'item_link_description' => 'A link to a mail server.',
43+
],
44+
'description' => 'Mail Servers',
45+
'public' => true,
46+
'hierarchical' => false,
47+
'exclude_from_search' => true,
48+
'publicly_queryable' => false,
49+
'show_ui' => true,
50+
'show_in_menu' => false,
51+
'show_in_nav_menus' => false,
52+
'show_in_admin_bar' => false,
53+
'show_in_rest' => true,
54+
'menu_position' => 20,
55+
'menu_icon' => 'dashicons-editor-help',
56+
'capability_type' => ['mail_server', 'mail_servers'],
57+
// 'capabilities' => [],
58+
'map_meta_cap' => true,
59+
'supports' => [
60+
'title',
61+
],
62+
'taxonomies' => [
63+
],
64+
'has_archive' => false,
65+
'rewrite' => [
66+
// 'slug' => '',
67+
'with_front' => false,
68+
],
69+
// 'query_var' => '',
70+
'can_export' => true,
71+
'delete_with_user' => false,
72+
],
73+
];

0 commit comments

Comments
 (0)