Skip to content

Commit 975f7f7

Browse files
committed
Added profile functions
1 parent d7ba181 commit 975f7f7

File tree

7 files changed

+516
-274
lines changed

7 files changed

+516
-274
lines changed

config/engine.php

+1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
'query_vars' => [
5050
'action',
5151
'nnc', // nonce
52+
'pg',
5253
],
5354
];

config/list.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
return [
5+
'gender' => [
6+
'male' => 'Male',
7+
'female' => 'Female',
8+
'non-binary' => 'Non-Binary',
9+
],
10+
];

config/post_types.php

+68
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,72 @@
277277
'can_export' => true,
278278
'delete_with_user' => false,
279279
],
280+
281+
'application' => [
282+
'label' => 'Applications',
283+
'labels' => [
284+
'name' => 'Applications',
285+
'singular_name' => 'Application',
286+
'add_new' => 'Add New Application',
287+
'add_new_item' => 'Add New Application',
288+
'edit_item' => 'Edit Application',
289+
'new_item' => 'New Application',
290+
'view_item' => 'View Application',
291+
'view_items' => 'View Applications',
292+
'search_items' => 'Search Applications',
293+
'not_found' => 'No applications found',
294+
'not_found_in_trash' => 'No applications found in Trash',
295+
'parent_item_colon' => 'Parent Application:',
296+
'all_items' => 'All Applications',
297+
'archives' => 'Application Archives',
298+
'attributes' => 'Application Attributes',
299+
'insert_into_item' => 'Insert into application',
300+
'uploaded_to_this_item' => 'Uploaded to this application',
301+
'featured_image' => 'Featured image',
302+
'set_featured_image' => 'Set featured image',
303+
'remove_featured_image' => 'Remove featured image',
304+
'use_featured_image' => 'Use as featured image',
305+
'menu_name' => 'Applications',
306+
'filter_items_list' => 'Filter applications list',
307+
'filter_by_date' => 'Filter by date',
308+
'items_list_navigation' => 'Applications list navigation',
309+
'items_list' => 'Applications list',
310+
'item_published' => 'Application published.',
311+
'item_published_privately' => 'Application published privately.',
312+
'item_reverted_to_draft' => 'Application reverted to draft.',
313+
'item_trashed' => 'Application trashed.',
314+
'item_scheduled' => 'Application scheduled.',
315+
'item_updated' => 'Application updated.',
316+
'item_link' => 'Application Link',
317+
'item_link_description' => 'A link to a application.',
318+
],
319+
'description' => 'Frequently Asked Questions (Applications)',
320+
'public' => true,
321+
'hierarchical' => false,
322+
'exclude_from_search' => true,
323+
'publicly_queryable' => false,
324+
'show_ui' => true,
325+
'show_in_menu' => true,
326+
'show_in_nav_menus' => true,
327+
'show_in_admin_bar' => false,
328+
'show_in_rest' => true,
329+
'menu_position' => 60,
330+
'menu_icon' => 'dashicons-editor-help',
331+
'capability_type' => ['application', 'applications'],
332+
// 'capabilities' => [],
333+
'map_meta_cap' => true,
334+
'supports' => [
335+
'title',
336+
],
337+
'taxonomies' => [
338+
],
339+
'has_archive' => false,
340+
'rewrite' => [
341+
// 'slug' => '',
342+
'with_front' => false,
343+
],
344+
// 'query_var' => '',
345+
'can_export' => true,
346+
'delete_with_user' => false,
347+
],
280348
];

src/Config.php

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function __construct(array $config = [])
168168
];
169169
}
170170
break;
171+
171172
}
172173
}
173174

0 commit comments

Comments
 (0)