PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.9.2.7
Advanced Custom Fields: Extended v0.9.2.7
0.9.2.7 0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / includes / modules / post-type / module-post-type-fields.php
acf-extended / includes / modules / post-type Last commit date
module-post-type-features.php 3 months ago module-post-type-fields.php 3 years ago module-post-type-upgrades.php 3 years ago module-post-type.php 3 months ago
module-post-type-fields.php
1827 lines
1 <?php
2
3 if(!defined('ABSPATH')){
4 exit;
5 }
6
7 if(!class_exists('acfe_module_post_type_field_groups')):
8
9 class acfe_module_post_type_field_groups{
10
11 /**
12 * construct
13 */
14 function __construct(){
15
16 add_filter('acfe/module/register_field_groups/module=post_type', array($this, 'register_field_groups'), 10, 2);
17
18 }
19
20
21 /**
22 * register_field_groups
23 *
24 * @param $field_groups
25 * @param $module
26 *
27 * @return mixed
28 */
29 function register_field_groups($field_groups, $module){
30
31 $field_groups[] = array(
32 'key' => 'group_acfe_post_type',
33 'title' => __('Post Type', 'acfe'),
34
35 'location' => array(
36 array(
37 array(
38 'param' => 'post_type',
39 'operator' => '==',
40 'value' => $module->post_type,
41 ),
42 ),
43 ),
44
45 'menu_order' => 0,
46 'position' => 'normal',
47 'style' => 'default',
48 'label_placement' => 'left',
49 'instruction_placement' => 'label',
50 'hide_on_screen' => '',
51 'active' => 1,
52 'description' => '',
53
54 'fields' => array(
55 array(
56 'key' => 'field_tab_general',
57 'label' => 'General',
58 'name' => '',
59 'type' => 'tab',
60 'instructions' => '',
61 'required' => 0,
62 'conditional_logic' => 0,
63 'wrapper' => array(
64 'width' => '',
65 'class' => '',
66 'id' => '',
67 'data-no-preference' => true,
68 ),
69 'placement' => 'top',
70 'endpoint' => 0,
71 ),
72 array(
73 'key' => 'field_name',
74 'label' => 'Name',
75 'name' => 'name',
76 'type' => 'acfe_slug',
77 'instructions' => __('Post type key. Must not exceed 20 characters and may only contain lowercase alphanumeric characters, dashes, and underscores. See <a href="https://developer.wordpress.org/reference/functions/sanitize_key/" target="_blank">sanitize_key()</a>.', 'acfe'),
78 'required' => 1,
79 'conditional_logic' => 0,
80 'wrapper' => array(
81 'width' => '',
82 'class' => '',
83 'id' => '',
84 ),
85 'default_value' => '',
86 'placeholder' => '',
87 'prepend' => '',
88 'append' => '',
89 'maxlength' => 20,
90 ),
91 array(
92 'key' => 'field_description',
93 'label' => 'Description',
94 'name' => 'description',
95 'type' => 'text',
96 'instructions' => __('A short descriptive summary of what the post type is.', 'acfe'),
97 'required' => 0,
98 'conditional_logic' => 0,
99 'wrapper' => array(
100 'width' => '',
101 'class' => '',
102 'id' => '',
103 ),
104 'default_value' => '',
105 'placeholder' => '',
106 'prepend' => '',
107 'append' => '',
108 'maxlength' => '',
109 ),
110 array(
111 'key' => 'field_hierarchical',
112 'label' => 'Hierarchical',
113 'name' => 'hierarchical',
114 'type' => 'true_false',
115 'instructions' => __('Whether the post type is hierarchical (e.g. page). Allows Parent to be specified. The <code>supports</code> parameter should contain \'page-attributes\' to show the parent select box on the editor page. Default false.', 'acfe'),
116 'required' => 0,
117 'conditional_logic' => 0,
118 'wrapper' => array(
119 'width' => '',
120 'class' => '',
121 'id' => '',
122 ),
123 'message' => '',
124 'default_value' => 0,
125 'ui' => 1,
126 'ui_on_text' => '',
127 'ui_off_text' => '',
128 ),
129 array(
130 'key' => 'field_supports',
131 'label' => 'Supports',
132 'name' => 'supports',
133 'type' => 'checkbox',
134 'instructions' => __('Core feature(s) the post type supports. Serves as an alias for calling <a href="https://developer.wordpress.org/reference/functions/add_post_type_support/" target="_blank">add_post_type_support()</a> directly. Default is an array containing \'title\' and \'editor\'.', 'acfe'),
135 'required' => 0,
136 'conditional_logic' => 0,
137 'wrapper' => array(
138 'width' => '',
139 'class' => '',
140 'id' => '',
141 ),
142 'choices' => array(
143 'title' => 'Title',
144 'editor' => 'Editor',
145 'author' => 'Author',
146 'thumbnail' => 'Thumbnail',
147 'excerpt' => 'Excerpt',
148 'trackbacks' => 'Trackbacks',
149 'custom-fields' => 'Custom fields',
150 'comments' => 'Comments',
151 'revisions' => 'Revisions',
152 'page-attributes' => 'Page attributes',
153 'post-formats' => 'Post formats',
154 ),
155 'allow_custom' => 1,
156 'save_custom' => 1,
157 'default_value' => array(),
158 'layout' => 'vertical',
159 'toggle' => 0,
160 'return_format' => 'value',
161 ),
162 array(
163 'key' => 'field_taxonomies',
164 'label' => 'Taxonomies',
165 'name' => 'taxonomies',
166 'type' => 'acfe_taxonomies',
167 'instructions' => __('An array of taxonomy identifiers that will be registered for the post type. Taxonomies can be registered later with <a href="https://developer.wordpress.org/reference/functions/register_taxonomy/" target="_blank">register_taxonomy()</a> or <a href="https://developer.wordpress.org/reference/functions/register_taxonomy_for_object_type/" target="_blank">register_taxonomy_for_object_type()</a>.', 'acfe'),
168 'required' => 0,
169 'conditional_logic' => 0,
170 'wrapper' => array(
171 'width' => '',
172 'class' => '',
173 'id' => '',
174 ),
175 'field_type' => 'checkbox',
176 'return_format' => 'name',
177 'multiple' => 0,
178 'allow_null' => 0,
179 ),
180 array(
181 'key' => 'field_public',
182 'label' => 'Public',
183 'name' => 'public',
184 'type' => 'true_false',
185 'instructions' => __('Controls how the type is visible to authors (<code>show_in_nav_menus</code>, <code>show_ui</code>) and readers (<code>exclude_from_search</code>, <code>publicly_queryable</code>). Default: false.', 'acfe'),
186 'required' => 0,
187 'conditional_logic' => 0,
188 'wrapper' => array(
189 'width' => '',
190 'class' => '',
191 'id' => '',
192 ),
193 'message' => '',
194 'default_value' => 1,
195 'ui' => 1,
196 'ui_on_text' => '',
197 'ui_off_text' => '',
198 ),
199 array(
200 'key' => 'field_exclude_from_search',
201 'label' => 'Exclude from search',
202 'name' => 'exclude_from_search',
203 'type' => 'true_false',
204 'instructions' => __('Whether to exclude posts with this post type from front end search results. Default: value of the opposite of <code>public</code> argument', 'acfe'),
205 'required' => 0,
206 'conditional_logic' => 0,
207 'wrapper' => array(
208 'width' => '',
209 'class' => '',
210 'id' => '',
211 ),
212 'message' => '',
213 'default_value' => 0,
214 'ui' => 1,
215 'ui_on_text' => '',
216 'ui_off_text' => '',
217 ),
218 array(
219 'key' => 'field_publicly_queryable',
220 'label' => 'Publicly queryable',
221 'name' => 'publicly_queryable',
222 'type' => 'true_false',
223 'instructions' => __('Whether queries can be performed on the front end as part of <code>parse_request()</code>. Default: value of <code>public</code> argument.', 'acfe'),
224 'required' => 0,
225 'conditional_logic' => 0,
226 'wrapper' => array(
227 'width' => '',
228 'class' => '',
229 'id' => '',
230 ),
231 'message' => '',
232 'default_value' => 1,
233 'ui' => 1,
234 'ui_on_text' => '',
235 'ui_off_text' => '',
236 ),
237 array(
238 'key' => 'field_can_export',
239 'label' => 'Can export',
240 'name' => 'can_export',
241 'type' => 'true_false',
242 'instructions' => __('Can this post_type be exported. Default: true.', 'acfe'),
243 'required' => 0,
244 'conditional_logic' => 0,
245 'wrapper' => array(
246 'width' => '',
247 'class' => '',
248 'id' => '',
249 ),
250 'message' => '',
251 'default_value' => 1,
252 'ui' => 1,
253 'ui_on_text' => '',
254 'ui_off_text' => '',
255 ),
256 array(
257 'key' => 'field_delete_with_user',
258 'label' => 'Delete with user',
259 'name' => 'delete_with_user',
260 'type' => 'radio',
261 'instructions' => __('Whether to delete posts of this type when deleting a user.<br/><br/>If true, posts of this type belonging to the user will be moved to trash when then user is deleted.<br/><br/>If false, posts of this type belonging to the user will not be trashed or deleted.<br/><br/>If not set (the default), posts are trashed if <code>post_type_supports(\'author\')</code>. Otherwise posts are not trashed or deleted. Default: null.', 'acfe'),
262 'required' => 0,
263 'conditional_logic' => 0,
264 'wrapper' => array(
265 'width' => '',
266 'class' => '',
267 'id' => '',
268 ),
269 'choices' => array(
270 'null' => 'Null (default)',
271 'false' => 'False',
272 'true' => 'True',
273 ),
274 'default_value' => array(
275 ),
276 'allow_null' => 0,
277 'multiple' => 0,
278 'ui' => 0,
279 'return_format' => 'value',
280 'ajax' => 0,
281 'placeholder' => '',
282 'unparse_type' => true,
283 ),
284 array(
285 'key' => 'field_tab_menu',
286 'label' => 'Menu',
287 'name' => '',
288 'type' => 'tab',
289 'instructions' => '',
290 'required' => 0,
291 'conditional_logic' => 0,
292 'wrapper' => array(
293 'width' => '',
294 'class' => '',
295 'id' => '',
296 ),
297 'placement' => 'top',
298 'endpoint' => 0,
299 ),
300 array(
301 'key' => 'field_menu_position',
302 'label' => 'Menu position',
303 'name' => 'menu_position',
304 'type' => 'number',
305 'instructions' => __('The position in the menu order the post type should appear. <code>show_in_menu</code> must be true. Default: null – defaults to below Comments.', 'acfe'),
306 'required' => 0,
307 'conditional_logic' => 0,
308 'wrapper' => array(
309 'width' => '',
310 'class' => '',
311 'id' => '',
312 ),
313 'default_value' => '',
314 'placeholder' => '',
315 'prepend' => '',
316 'append' => '',
317 'min' => 0,
318 'max' => '',
319 'step' => '',
320 ),
321 array(
322 'key' => 'field_menu_icon',
323 'label' => 'Menu icon',
324 'name' => 'menu_icon',
325 'type' => 'text',
326 'instructions' => __('The url to the icon to be used for this menu or the name of the icon from the iconfont (<a href="https://developer.wordpress.org/resource/dashicons/" target="_blank">Dashicons</a>). Default: null – defaults to the posts icon.', 'acfe'),
327 'required' => 0,
328 'conditional_logic' => 0,
329 'wrapper' => array(
330 'width' => '',
331 'class' => '',
332 'id' => '',
333 ),
334 'default_value' => 'dashicons-admin-post',
335 'placeholder' => '',
336 'prepend' => '',
337 'append' => '',
338 'maxlength' => '',
339 ),
340 array(
341 'key' => 'field_show_ui',
342 'label' => 'Show UI',
343 'name' => 'show_ui',
344 'type' => 'true_false',
345 'instructions' => __('Whether to generate a default UI for managing this post type in the admin. Default: value of <code>public</code> argument', 'acfe'),
346 'required' => 0,
347 'conditional_logic' => 0,
348 'wrapper' => array(
349 'width' => '',
350 'class' => '',
351 'id' => '',
352 ),
353 'message' => '',
354 'default_value' => 1,
355 'ui' => 1,
356 'ui_on_text' => '',
357 'ui_off_text' => '',
358 ),
359 array(
360 'key' => 'field_show_in_menu',
361 'label' => 'Show in menu',
362 'name' => 'show_in_menu',
363 'type' => 'true_false',
364 'instructions' => __('Where to show the post type in the admin menu. <code>show_ui</code> must be true. Default: value of <code>show_ui</code> argument', 'acfe'),
365 'required' => 0,
366 'conditional_logic' => 0,
367 'wrapper' => array(
368 'width' => '',
369 'class' => '',
370 'id' => '',
371 ),
372 'message' => '',
373 'default_value' => 1,
374 'ui' => 1,
375 'ui_on_text' => '',
376 'ui_off_text' => '',
377 ),
378 array(
379 'key' => 'field_show_in_menu_text',
380 'label' => 'Show in menu (text)',
381 'name' => 'show_in_menu_text',
382 'type' => 'text',
383 'instructions' => __('If an existing top level page such as <code>tools.php</code> or <code>edit.php?post_type=page</code>, the post type will be placed as a sub menu of that.', 'acfe'),
384 'required' => 0,
385 'conditional_logic' => array(
386 array(
387 array(
388 'field' => 'field_show_in_menu',
389 'operator' => '==',
390 'value' => '1',
391 ),
392 ),
393 ),
394 'wrapper' => array(
395 'width' => '',
396 'class' => '',
397 'id' => '',
398 ),
399 'default_value' => '',
400 'placeholder' => '',
401 'prepend' => '',
402 'append' => '',
403 'maxlength' => '',
404 'cleanup_key' => true,
405 ),
406 array(
407 'key' => 'field_show_in_nav_menus',
408 'label' => 'Show in nav menus',
409 'name' => 'show_in_nav_menus',
410 'type' => 'true_false',
411 'instructions' => __('Whether post_type is available for selection in navigation menus. Default: value of <code>public</code> argument', 'acfe'),
412 'required' => 0,
413 'conditional_logic' => 0,
414 'wrapper' => array(
415 'width' => '',
416 'class' => '',
417 'id' => '',
418 ),
419 'message' => '',
420 'default_value' => 1,
421 'ui' => 1,
422 'ui_on_text' => '',
423 'ui_off_text' => '',
424 ),
425 array(
426 'key' => 'field_show_in_admin_bar',
427 'label' => 'Show in admin bar',
428 'name' => 'show_in_admin_bar',
429 'type' => 'true_false',
430 'instructions' => __('Whether to make this post type available in the WordPress admin bar. Default: value of <code>show_in_menu</code> argument', 'acfe'),
431 'required' => 0,
432 'conditional_logic' => 0,
433 'wrapper' => array(
434 'width' => '',
435 'class' => '',
436 'id' => '',
437 ),
438 'message' => '',
439 'default_value' => 1,
440 'ui' => 1,
441 'ui_on_text' => '',
442 'ui_off_text' => '',
443 ),
444 array(
445 'key' => 'field_tab_archive',
446 'label' => 'Archive',
447 'name' => '',
448 'type' => 'tab',
449 'instructions' => '',
450 'required' => 0,
451 'conditional_logic' => 0,
452 'wrapper' => array(
453 'width' => '',
454 'class' => '',
455 'id' => '',
456 ),
457 'placement' => 'top',
458 'endpoint' => 0,
459 ),
460 array(
461 'key' => 'field_acfe_archive_template',
462 'label' => 'Template',
463 'name' => 'acfe_archive_template',
464 'type' => 'text',
465 'instructions' => __('Which template file to load for the archive query. Default: <a href="https://developer.wordpress.org/themes/basics/template-hierarchy/" target="_blank">Template hierarchy</a>', 'acfe'),
466 'required' => 0,
467 'conditional_logic' => 0,
468 'wrapper' => array(
469 'width' => '',
470 'class' => '',
471 'id' => '',
472 ),
473 'default_value' => '',
474 'placeholder' => 'my-template.php',
475 'prepend' => trailingslashit(acfe_get_setting('theme_folder')),
476 'append' => '',
477 'maxlength' => '',
478 ),
479 array(
480 'key' => 'field_has_archive',
481 'label' => 'Has archive',
482 'name' => 'has_archive',
483 'type' => 'true_false',
484 'instructions' => __('Enables post type archives. Default: false', 'acfe'),
485 'required' => 0,
486 'conditional_logic' => 0,
487 'wrapper' => array(
488 'width' => '',
489 'class' => '',
490 'id' => '',
491 ),
492 'message' => '',
493 'default_value' => 1,
494 'ui' => 1,
495 'ui_on_text' => '',
496 'ui_off_text' => '',
497 ),
498 array(
499 'key' => 'field_has_archive_slug',
500 'label' => 'Slug',
501 'name' => 'has_archive_slug',
502 'type' => 'text',
503 'instructions' => __('Will use <code>name</code> as archive slug by default.', 'acfe'),
504 'required' => 0,
505 'conditional_logic' => array(
506 array(
507 array(
508 'field' => 'field_has_archive',
509 'operator' => '==',
510 'value' => '1',
511 ),
512 ),
513 ),
514 'wrapper' => array(
515 'width' => '',
516 'class' => '',
517 'id' => '',
518 ),
519 'default_value' => '',
520 'placeholder' => 'Default',
521 'prepend' => '',
522 'append' => '',
523 'maxlength' => '',
524 'cleanup_key' => true,
525 ),
526 array(
527 'key' => 'field_acfe_archive_ppp',
528 'label' => 'Posts per page',
529 'name' => 'acfe_archive_ppp',
530 'type' => 'number',
531 'instructions' => __('Number of posts to display in the archive page. Default: 10', 'acfe'),
532 'required' => 0,
533 'wrapper' => array(
534 'width' => '',
535 'class' => '',
536 'id' => '',
537 ),
538 'default_value' => 10,
539 'placeholder' => '',
540 'prepend' => '',
541 'append' => '',
542 'min' => -1,
543 'max' => '',
544 'step' => '',
545 'conditional_logic' => array(
546 array(
547 array(
548 'field' => 'field_has_archive',
549 'operator' => '==',
550 'value' => '1',
551 ),
552 ),
553 ),
554 ),
555 array(
556 'key' => 'field_acfe_archive_orderby',
557 'label' => 'Order by',
558 'name' => 'acfe_archive_orderby',
559 'type' => 'text',
560 'instructions' => __('Sort retrieved posts by parameter in the archive page. Default: date (<code>post_date</code>).', 'acfe'),
561 'required' => 0,
562 'wrapper' => array(
563 'width' => '',
564 'class' => '',
565 'id' => '',
566 ),
567 'default_value' => 'date',
568 'placeholder' => '',
569 'prepend' => '',
570 'append' => '',
571 'maxlength' => '',
572 'conditional_logic' => array(
573 array(
574 array(
575 'field' => 'field_has_archive',
576 'operator' => '==',
577 'value' => '1',
578 ),
579 ),
580 ),
581 ),
582 array(
583 'key' => 'field_acfe_archive_order',
584 'label' => 'Order',
585 'name' => 'acfe_archive_order',
586 'type' => 'select',
587 'instructions' => __('Designates the ascending or descending order of the <code>orderby</code> parameter in the archive page. Default: DESC.', 'acfe'),
588 'required' => 0,
589 'wrapper' => array(
590 'width' => '',
591 'class' => '',
592 'id' => '',
593 ),
594 'choices' => array(
595 'ASC' => 'ASC',
596 'DESC' => 'DESC',
597 ),
598 'default_value' => array(
599 0 => 'DESC',
600 ),
601 'allow_null' => 0,
602 'multiple' => 0,
603 'ui' => 0,
604 'return_format' => 'value',
605 'ajax' => 0,
606 'placeholder' => '',
607 'conditional_logic' => array(
608 array(
609 array(
610 'field' => 'field_has_archive',
611 'operator' => '==',
612 'value' => '1',
613 ),
614 ),
615 ),
616 ),
617 array(
618 'key' => 'field_acfe_archive_meta_key',
619 'label' => 'Meta key',
620 'name' => 'acfe_archive_meta_key',
621 'type' => 'text',
622 'instructions' => __('Custom field used for the <code>orderby</code> parameter in the archive page', 'acfe'),
623 'required' => 0,
624 'wrapper' => array(
625 'width' => '',
626 'class' => '',
627 'id' => '',
628 ),
629 'default_value' => '',
630 'placeholder' => '',
631 'prepend' => '',
632 'append' => '',
633 'maxlength' => '',
634 'conditional_logic' => array(
635 array(
636 array(
637 'field' => 'field_has_archive',
638 'operator' => '==',
639 'value' => '1',
640 ),
641 ),
642 ),
643 ),
644 array(
645 'key' => 'field_acfe_archive_meta_type',
646 'label' => 'Meta type',
647 'name' => 'acfe_archive_meta_type',
648 'type' => 'text',
649 'instructions' => __('Custom field type (NUMERIC, BINARY, CHAR, DATE, DATETIME, DECIMAL, SIGNED, TIME, UNSIGNED) used for the <code>orderby</code> parameter in the archive page', 'acfe'),
650 'required' => 0,
651 'wrapper' => array(
652 'width' => '',
653 'class' => '',
654 'id' => '',
655 ),
656 'default_value' => '',
657 'placeholder' => '',
658 'prepend' => '',
659 'append' => '',
660 'maxlength' => '',
661 'conditional_logic' => array(
662 array(
663 array(
664 'field' => 'field_has_archive',
665 'operator' => '==',
666 'value' => '1',
667 ),
668 ),
669 ),
670 ),
671 array(
672 'key' => 'field_tab_single',
673 'label' => 'Single',
674 'name' => '',
675 'type' => 'tab',
676 'instructions' => '',
677 'required' => 0,
678 'conditional_logic' => 0,
679 'wrapper' => array(
680 'width' => '',
681 'class' => '',
682 'id' => '',
683 ),
684 'placement' => 'top',
685 'endpoint' => 0,
686 ),
687 array(
688 'key' => 'field_acfe_single_template',
689 'label' => 'Template',
690 'name' => 'acfe_single_template',
691 'type' => 'text',
692 'instructions' => __('Which template file to load for the single query. Default: <a href="https://developer.wordpress.org/themes/basics/template-hierarchy/" target="_blank">Template hierarchy</a>' ,'acfe'),
693 'required' => 0,
694 'conditional_logic' => 0,
695 'wrapper' => array(
696 'width' => '',
697 'class' => '',
698 'id' => '',
699 ),
700 'default_value' => '',
701 'placeholder' => 'my-template.php',
702 'prepend' => trailingslashit(acfe_get_setting('theme_folder')),
703 'append' => '',
704 'maxlength' => '',
705 ),
706 array(
707 'key' => 'field_rewrite',
708 'label' => 'Rewrite',
709 'name' => 'rewrite',
710 'type' => 'true_false',
711 'instructions' => __('Triggers the handling of rewrites for this post type. To prevent rewrites, set to false. Default: true and use <code>name</code> as slug'),
712 'required' => 0,
713 'conditional_logic' => 0,
714 'wrapper' => array(
715 'width' => '',
716 'class' => '',
717 'id' => '',
718 ),
719 'message' => '',
720 'default_value' => 1,
721 'ui' => 1,
722 'ui_on_text' => '',
723 'ui_off_text' => '',
724 ),
725 array(
726 'key' => 'field_rewrite_args_select',
727 'label' => 'Rewrite Arguments',
728 'name' => 'rewrite_args_select',
729 'type' => 'true_false',
730 'instructions' => 'Use additional rewrite arguments',
731 'required' => 0,
732 'conditional_logic' => array(
733 array(
734 array(
735 'field' => 'field_rewrite',
736 'operator' => '==',
737 'value' => '1',
738 ),
739 ),
740 ),
741 'wrapper' => array(
742 'width' => '',
743 'class' => '',
744 'id' => '',
745 ),
746 'message' => '',
747 'default_value' => 0,
748 'ui' => 1,
749 'ui_on_text' => '',
750 'ui_off_text' => '',
751 'cleanup_key' => true,
752 ),
753 array(
754 'key' => 'field_rewrite_args',
755 'label' => 'Rewrite Arguments',
756 'name' => 'rewrite_args',
757 'type' => 'group',
758 'instructions' => '',
759 'required' => 0,
760 'conditional_logic' => array(
761 array(
762 array(
763 'field' => 'field_rewrite',
764 'operator' => '==',
765 'value' => '1',
766 ),
767 array(
768 'field' => 'field_rewrite_args_select',
769 'operator' => '==',
770 'value' => '1',
771 ),
772 ),
773 ),
774 'wrapper' => array(
775 'width' => '',
776 'class' => '',
777 'id' => '',
778 ),
779 'layout' => 'row',
780 'cleanup_key' => true,
781 'sub_fields' => array(
782 array(
783 'key' => 'field_slug',
784 'label' => 'Slug',
785 'name' => 'slug',
786 'type' => 'text',
787 'instructions' => __('Customize the permalink structure slug. Defaults to the <code>name</code> value. Should be translatable.', 'acfe'),
788 'required' => 0,
789 'conditional_logic' => array(
790 array(
791 array(
792 'field' => 'field_rewrite_args_select',
793 'operator' => '==',
794 'value' => '1',
795 ),
796 ),
797 ),
798 'wrapper' => array(
799 'width' => '',
800 'class' => '',
801 'id' => '',
802 'data-instruction-placement' => 'field',
803 ),
804 'default_value' => '',
805 'placeholder' => 'Default',
806 'prepend' => '',
807 'append' => '',
808 'maxlength' => '',
809 ),
810 array(
811 'key' => 'field_with_front',
812 'label' => 'With front',
813 'name' => 'with_front',
814 'type' => 'true_false',
815 'instructions' => __('Should the permalink structure be prepended with the front base. (example: if your permalink structure is <code>/blog/</code>, then your links will be: false-><code>/news/</code>, true-><code>/blog/news/</code>). Defaults to true.' ,'acfe'),
816 'required' => 0,
817 'conditional_logic' => array(
818 array(
819 array(
820 'field' => 'field_rewrite_args_select',
821 'operator' => '==',
822 'value' => '1',
823 ),
824 ),
825 ),
826 'wrapper' => array(
827 'width' => '',
828 'class' => '',
829 'id' => '',
830 'data-instruction-placement' => 'field',
831 ),
832 'message' => '',
833 'default_value' => 1,
834 'ui' => 1,
835 'ui_on_text' => '',
836 'ui_off_text' => '',
837 ),
838 array(
839 'key' => 'field_feeds',
840 'label' => 'Feeds',
841 'name' => 'feeds',
842 'type' => 'true_false',
843 'instructions' => __('Should a feed permalink structure be built for this post type. Defaults to <code>has_archive</code> value.', 'acfe'),
844 'required' => 0,
845 'conditional_logic' => array(
846 array(
847 array(
848 'field' => 'field_rewrite_args_select',
849 'operator' => '==',
850 'value' => '1',
851 ),
852 ),
853 ),
854 'wrapper' => array(
855 'width' => '',
856 'class' => '',
857 'id' => '',
858 'data-instruction-placement' => 'field',
859 ),
860 'message' => '',
861 'default_value' => 1,
862 'ui' => 1,
863 'ui_on_text' => '',
864 'ui_off_text' => '',
865 ),
866 array(
867 'key' => 'field_pages',
868 'label' => 'Pages',
869 'name' => 'pages',
870 'type' => 'true_false',
871 'instructions' => __('Should the permalink structure provide for pagination. Defaults to true.', 'acfe'),
872 'required' => 0,
873 'conditional_logic' => array(
874 array(
875 array(
876 'field' => 'field_rewrite_args_select',
877 'operator' => '==',
878 'value' => '1',
879 ),
880 ),
881 ),
882 'wrapper' => array(
883 'width' => '',
884 'class' => '',
885 'id' => '',
886 'data-instruction-placement' => 'field',
887 ),
888 'message' => '',
889 'default_value' => 1,
890 'ui' => 1,
891 'ui_on_text' => '',
892 'ui_off_text' => '',
893 ),
894 ),
895 ),
896 array(
897 'key' => 'field_tab_admin',
898 'label' => 'Admin',
899 'name' => '',
900 'type' => 'tab',
901 'instructions' => '',
902 'required' => 0,
903 'conditional_logic' => 0,
904 'wrapper' => array(
905 'width' => '',
906 'class' => '',
907 'id' => '',
908 ),
909 'placement' => 'top',
910 'endpoint' => 0,
911 ),
912 array(
913 'key' => 'field_acfe_admin_archive',
914 'label' => 'Archive Page',
915 'name' => 'acfe_admin_archive',
916 'type' => 'true_false',
917 'instructions' => __('Add an "Archive" Options Page as submenu of the post type.', 'acfe'),
918 'required' => 0,
919 'wrapper' => array(
920 'width' => '',
921 'class' => '',
922 'id' => '',
923 ),
924 'message' => '',
925 'default_value' => 0,
926 'ui' => 1,
927 'ui_on_text' => '',
928 'ui_off_text' => '',
929 ),
930 array(
931 'key' => 'field_acfe_admin_ppp',
932 'label' => 'Posts per page',
933 'name' => 'acfe_admin_ppp',
934 'type' => 'number',
935 'instructions' => __('Number of posts to display on the admin list screen. Default: 10', 'acfe'),
936 'required' => 0,
937 'conditional_logic' => 0,
938 'wrapper' => array(
939 'width' => '',
940 'class' => '',
941 'id' => '',
942 ),
943 'default_value' => 10,
944 'placeholder' => '',
945 'prepend' => '',
946 'append' => '',
947 'min' => -1,
948 'max' => '',
949 'step' => '',
950 ),
951 array(
952 'key' => 'field_acfe_admin_orderby',
953 'label' => 'Order by',
954 'name' => 'acfe_admin_orderby',
955 'type' => 'text',
956 'instructions' => __('Sort retrieved posts by parameter in the admin list screen. Default: date (<code>post_date</code>).' ,'acfe'),
957 'required' => 0,
958 'conditional_logic' => 0,
959 'wrapper' => array(
960 'width' => '',
961 'class' => '',
962 'id' => '',
963 ),
964 'default_value' => 'date',
965 'placeholder' => '',
966 'prepend' => '',
967 'append' => '',
968 'maxlength' => '',
969 ),
970 array(
971 'key' => 'field_acfe_admin_order',
972 'label' => 'Order',
973 'name' => 'acfe_admin_order',
974 'type' => 'select',
975 'instructions' => __('Designates the ascending or descending order of the <code>orderby</code> parameter in the admin list screen. Default: DESC.', 'acfe'),
976 'required' => 0,
977 'conditional_logic' => 0,
978 'wrapper' => array(
979 'width' => '',
980 'class' => '',
981 'id' => '',
982 ),
983 'choices' => array(
984 'ASC' => 'ASC',
985 'DESC' => 'DESC',
986 ),
987 'default_value' => array(
988 0 => 'DESC',
989 ),
990 'allow_null' => 0,
991 'multiple' => 0,
992 'ui' => 0,
993 'return_format' => 'value',
994 'ajax' => 0,
995 'placeholder' => '',
996 ),
997 array(
998 'key' => 'field_acfe_admin_meta_key',
999 'label' => 'Meta key',
1000 'name' => 'acfe_admin_meta_key',
1001 'type' => 'text',
1002 'instructions' => __('Custom field used for the <code>orderby</code> parameter in the admin list screen', 'acfe'),
1003 'required' => 0,
1004 'wrapper' => array(
1005 'width' => '',
1006 'class' => '',
1007 'id' => '',
1008 ),
1009 'default_value' => '',
1010 'placeholder' => '',
1011 'prepend' => '',
1012 'append' => '',
1013 'maxlength' => '',
1014 'conditional_logic' => array(),
1015 ),
1016 array(
1017 'key' => 'field_acfe_admin_meta_type',
1018 'label' => 'Meta type',
1019 'name' => 'acfe_admin_meta_type',
1020 'type' => 'text',
1021 'instructions' => __('Custom field type (NUMERIC, BINARY, CHAR, DATE, DATETIME, DECIMAL, SIGNED, TIME, UNSIGNED) used for the <code>orderby</code> parameter in the admin list screen', 'acfe'),
1022 'required' => 0,
1023 'wrapper' => array(
1024 'width' => '',
1025 'class' => '',
1026 'id' => '',
1027 ),
1028 'default_value' => '',
1029 'placeholder' => '',
1030 'prepend' => '',
1031 'append' => '',
1032 'maxlength' => '',
1033 'conditional_logic' => array(),
1034 ),
1035 array(
1036 'key' => 'field_tab_labels',
1037 'label' => 'Labels',
1038 'name' => '',
1039 'type' => 'tab',
1040 'instructions' => '',
1041 'required' => 0,
1042 'conditional_logic' => 0,
1043 'wrapper' => array(
1044 'width' => '',
1045 'class' => '',
1046 'id' => '',
1047 ),
1048 'placement' => 'top',
1049 'endpoint' => 0,
1050 ),
1051 array(
1052 'key' => 'field_labels',
1053 'label' => 'Labels',
1054 'name' => 'labels',
1055 'type' => 'group',
1056 'instructions' => 'An array of labels for this post type. By default, post labels are used for non-hierarchical post types and page labels for hierarchical ones.<br /><br />
1057 Default: if empty, <code>name</code> is set to value of <code>label</code>, and <code>singular_name</code> is set to value of <code>name</code>.',
1058 'required' => 0,
1059 'conditional_logic' => 0,
1060 'wrapper' => array(
1061 'width' => '',
1062 'class' => '',
1063 'id' => '',
1064 ),
1065 'layout' => 'row',
1066 'sub_fields' => array(
1067 array(
1068 'key' => 'field_singular_name',
1069 'label' => 'Singular name',
1070 'name' => 'singular_name',
1071 'type' => 'text',
1072 'instructions' => '',
1073 'required' => 0,
1074 'conditional_logic' => 0,
1075 'wrapper' => array(
1076 'width' => '',
1077 'class' => '',
1078 'id' => '',
1079 ),
1080 'default_value' => '',
1081 'placeholder' => '',
1082 'prepend' => '',
1083 'append' => '',
1084 'maxlength' => '',
1085 ),
1086 array(
1087 'key' => 'field_add_new',
1088 'label' => 'Add new',
1089 'name' => 'add_new',
1090 'type' => 'text',
1091 'instructions' => '',
1092 'required' => 0,
1093 'conditional_logic' => 0,
1094 'wrapper' => array(
1095 'width' => '',
1096 'class' => '',
1097 'id' => '',
1098 ),
1099 'default_value' => '',
1100 'placeholder' => '',
1101 'prepend' => '',
1102 'append' => '',
1103 'maxlength' => '',
1104 ),
1105 array(
1106 'key' => 'field_add_new_item',
1107 'label' => 'Add new item',
1108 'name' => 'add_new_item',
1109 'type' => 'text',
1110 'instructions' => '',
1111 'required' => 0,
1112 'conditional_logic' => 0,
1113 'wrapper' => array(
1114 'width' => '',
1115 'class' => '',
1116 'id' => '',
1117 ),
1118 'default_value' => '',
1119 'placeholder' => '',
1120 'prepend' => '',
1121 'append' => '',
1122 'maxlength' => '',
1123 ),
1124 array(
1125 'key' => 'field_edit_item',
1126 'label' => 'Edit item',
1127 'name' => 'edit_item',
1128 'type' => 'text',
1129 'instructions' => '',
1130 'required' => 0,
1131 'conditional_logic' => 0,
1132 'wrapper' => array(
1133 'width' => '',
1134 'class' => '',
1135 'id' => '',
1136 ),
1137 'default_value' => '',
1138 'placeholder' => '',
1139 'prepend' => '',
1140 'append' => '',
1141 'maxlength' => '',
1142 ),
1143 array(
1144 'key' => 'field_new_item',
1145 'label' => 'New item',
1146 'name' => 'new_item',
1147 'type' => 'text',
1148 'instructions' => '',
1149 'required' => 0,
1150 'conditional_logic' => 0,
1151 'wrapper' => array(
1152 'width' => '',
1153 'class' => '',
1154 'id' => '',
1155 ),
1156 'default_value' => '',
1157 'placeholder' => '',
1158 'prepend' => '',
1159 'append' => '',
1160 'maxlength' => '',
1161 ),
1162 array(
1163 'key' => 'field_view_item',
1164 'label' => 'View item',
1165 'name' => 'view_item',
1166 'type' => 'text',
1167 'instructions' => '',
1168 'required' => 0,
1169 'conditional_logic' => 0,
1170 'wrapper' => array(
1171 'width' => '',
1172 'class' => '',
1173 'id' => '',
1174 ),
1175 'default_value' => '',
1176 'placeholder' => '',
1177 'prepend' => '',
1178 'append' => '',
1179 'maxlength' => '',
1180 ),
1181 array(
1182 'key' => 'field_view_items',
1183 'label' => 'View items',
1184 'name' => 'view_items',
1185 'type' => 'text',
1186 'instructions' => '',
1187 'required' => 0,
1188 'conditional_logic' => 0,
1189 'wrapper' => array(
1190 'width' => '',
1191 'class' => '',
1192 'id' => '',
1193 ),
1194 'default_value' => '',
1195 'placeholder' => '',
1196 'prepend' => '',
1197 'append' => '',
1198 'maxlength' => '',
1199 ),
1200 array(
1201 'key' => 'field_search_items',
1202 'label' => 'Search items',
1203 'name' => 'search_items',
1204 'type' => 'text',
1205 'instructions' => '',
1206 'required' => 0,
1207 'conditional_logic' => 0,
1208 'wrapper' => array(
1209 'width' => '',
1210 'class' => '',
1211 'id' => '',
1212 ),
1213 'default_value' => '',
1214 'placeholder' => '',
1215 'prepend' => '',
1216 'append' => '',
1217 'maxlength' => '',
1218 ),
1219 array(
1220 'key' => 'field_not_found',
1221 'label' => 'Not found',
1222 'name' => 'not_found',
1223 'type' => 'text',
1224 'instructions' => '',
1225 'required' => 0,
1226 'conditional_logic' => 0,
1227 'wrapper' => array(
1228 'width' => '',
1229 'class' => '',
1230 'id' => '',
1231 ),
1232 'default_value' => '',
1233 'placeholder' => '',
1234 'prepend' => '',
1235 'append' => '',
1236 'maxlength' => '',
1237 ),
1238 array(
1239 'key' => 'field_not_found_in_trash',
1240 'label' => 'Not found in trash',
1241 'name' => 'not_found_in_trash',
1242 'type' => 'text',
1243 'instructions' => '',
1244 'required' => 0,
1245 'conditional_logic' => 0,
1246 'wrapper' => array(
1247 'width' => '',
1248 'class' => '',
1249 'id' => '',
1250 ),
1251 'default_value' => '',
1252 'placeholder' => '',
1253 'prepend' => '',
1254 'append' => '',
1255 'maxlength' => '',
1256 ),
1257 array(
1258 'key' => 'field_parent_item_colon',
1259 'label' => 'Parent item colon',
1260 'name' => 'parent_item_colon',
1261 'type' => 'text',
1262 'instructions' => '',
1263 'required' => 0,
1264 'conditional_logic' => 0,
1265 'wrapper' => array(
1266 'width' => '',
1267 'class' => '',
1268 'id' => '',
1269 ),
1270 'default_value' => '',
1271 'placeholder' => '',
1272 'prepend' => '',
1273 'append' => '',
1274 'maxlength' => '',
1275 ),
1276 array(
1277 'key' => 'field_all_items',
1278 'label' => 'All items',
1279 'name' => 'all_items',
1280 'type' => 'text',
1281 'instructions' => '',
1282 'required' => 0,
1283 'conditional_logic' => 0,
1284 'wrapper' => array(
1285 'width' => '',
1286 'class' => '',
1287 'id' => '',
1288 ),
1289 'default_value' => '',
1290 'placeholder' => '',
1291 'prepend' => '',
1292 'append' => '',
1293 'maxlength' => '',
1294 ),
1295 array(
1296 'key' => 'field_archives',
1297 'label' => 'Archives',
1298 'name' => 'archives',
1299 'type' => 'text',
1300 'instructions' => '',
1301 'required' => 0,
1302 'conditional_logic' => 0,
1303 'wrapper' => array(
1304 'width' => '',
1305 'class' => '',
1306 'id' => '',
1307 ),
1308 'default_value' => '',
1309 'placeholder' => '',
1310 'prepend' => '',
1311 'append' => '',
1312 'maxlength' => '',
1313 ),
1314 array(
1315 'key' => 'field_attributes',
1316 'label' => 'Attributes',
1317 'name' => 'attributes',
1318 'type' => 'text',
1319 'instructions' => '',
1320 'required' => 0,
1321 'conditional_logic' => 0,
1322 'wrapper' => array(
1323 'width' => '',
1324 'class' => '',
1325 'id' => '',
1326 ),
1327 'default_value' => '',
1328 'placeholder' => '',
1329 'prepend' => '',
1330 'append' => '',
1331 'maxlength' => '',
1332 ),
1333 array(
1334 'key' => 'field_insert_into_item',
1335 'label' => 'Insert into item',
1336 'name' => 'insert_into_item',
1337 'type' => 'text',
1338 'instructions' => '',
1339 'required' => 0,
1340 'conditional_logic' => 0,
1341 'wrapper' => array(
1342 'width' => '',
1343 'class' => '',
1344 'id' => '',
1345 ),
1346 'default_value' => '',
1347 'placeholder' => '',
1348 'prepend' => '',
1349 'append' => '',
1350 'maxlength' => '',
1351 ),
1352 array(
1353 'key' => 'field_uploaded_to_this_item',
1354 'label' => 'Uploaded to this item',
1355 'name' => 'uploaded_to_this_item',
1356 'type' => 'text',
1357 'instructions' => '',
1358 'required' => 0,
1359 'conditional_logic' => 0,
1360 'wrapper' => array(
1361 'width' => '',
1362 'class' => '',
1363 'id' => '',
1364 ),
1365 'default_value' => '',
1366 'placeholder' => '',
1367 'prepend' => '',
1368 'append' => '',
1369 'maxlength' => '',
1370 ),
1371 array(
1372 'key' => 'field_featured_image',
1373 'label' => 'Featured image',
1374 'name' => 'featured_image',
1375 'type' => 'text',
1376 'instructions' => '',
1377 'required' => 0,
1378 'conditional_logic' => 0,
1379 'wrapper' => array(
1380 'width' => '',
1381 'class' => '',
1382 'id' => '',
1383 ),
1384 'default_value' => '',
1385 'placeholder' => '',
1386 'prepend' => '',
1387 'append' => '',
1388 'maxlength' => '',
1389 ),
1390 array(
1391 'key' => 'field_set_featured_image',
1392 'label' => 'Set featured image',
1393 'name' => 'set_featured_image',
1394 'type' => 'text',
1395 'instructions' => '',
1396 'required' => 0,
1397 'conditional_logic' => 0,
1398 'wrapper' => array(
1399 'width' => '',
1400 'class' => '',
1401 'id' => '',
1402 ),
1403 'default_value' => '',
1404 'placeholder' => '',
1405 'prepend' => '',
1406 'append' => '',
1407 'maxlength' => '',
1408 ),
1409 array(
1410 'key' => 'field_remove_featured_image',
1411 'label' => 'Remove featured image',
1412 'name' => 'remove_featured_image',
1413 'type' => 'text',
1414 'instructions' => '',
1415 'required' => 0,
1416 'conditional_logic' => 0,
1417 'wrapper' => array(
1418 'width' => '',
1419 'class' => '',
1420 'id' => '',
1421 ),
1422 'default_value' => '',
1423 'placeholder' => '',
1424 'prepend' => '',
1425 'append' => '',
1426 'maxlength' => '',
1427 ),
1428 array(
1429 'key' => 'field_use_featured_image',
1430 'label' => 'Use featured image',
1431 'name' => 'use_featured_image',
1432 'type' => 'text',
1433 'instructions' => '',
1434 'required' => 0,
1435 'conditional_logic' => 0,
1436 'wrapper' => array(
1437 'width' => '',
1438 'class' => '',
1439 'id' => '',
1440 ),
1441 'default_value' => '',
1442 'placeholder' => '',
1443 'prepend' => '',
1444 'append' => '',
1445 'maxlength' => '',
1446 ),
1447 array(
1448 'key' => 'field_menu_name',
1449 'label' => 'Menu name',
1450 'name' => 'menu_name',
1451 'type' => 'text',
1452 'instructions' => '',
1453 'required' => 0,
1454 'conditional_logic' => 0,
1455 'wrapper' => array(
1456 'width' => '',
1457 'class' => '',
1458 'id' => '',
1459 ),
1460 'default_value' => '',
1461 'placeholder' => '',
1462 'prepend' => '',
1463 'append' => '',
1464 'maxlength' => '',
1465 ),
1466 array(
1467 'key' => 'field_filter_items_list',
1468 'label' => 'Filter items list',
1469 'name' => 'filter_items_list',
1470 'type' => 'text',
1471 'instructions' => '',
1472 'required' => 0,
1473 'conditional_logic' => 0,
1474 'wrapper' => array(
1475 'width' => '',
1476 'class' => '',
1477 'id' => '',
1478 ),
1479 'default_value' => '',
1480 'placeholder' => '',
1481 'prepend' => '',
1482 'append' => '',
1483 'maxlength' => '',
1484 ),
1485 array(
1486 'key' => 'field_items_list_navigation',
1487 'label' => 'Items list navigation',
1488 'name' => 'items_list_navigation',
1489 'type' => 'text',
1490 'instructions' => '',
1491 'required' => 0,
1492 'conditional_logic' => 0,
1493 'wrapper' => array(
1494 'width' => '',
1495 'class' => '',
1496 'id' => '',
1497 ),
1498 'default_value' => '',
1499 'placeholder' => '',
1500 'prepend' => '',
1501 'append' => '',
1502 'maxlength' => '',
1503 ),
1504 array(
1505 'key' => 'field_items_list',
1506 'label' => 'Items list',
1507 'name' => 'items_list',
1508 'type' => 'text',
1509 'instructions' => '',
1510 'required' => 0,
1511 'conditional_logic' => 0,
1512 'wrapper' => array(
1513 'width' => '',
1514 'class' => '',
1515 'id' => '',
1516 ),
1517 'default_value' => '',
1518 'placeholder' => '',
1519 'prepend' => '',
1520 'append' => '',
1521 'maxlength' => '',
1522 ),
1523 array(
1524 'key' => 'field_name_admin_bar',
1525 'label' => 'Name admin bar',
1526 'name' => 'name_admin_bar',
1527 'type' => 'text',
1528 'instructions' => '',
1529 'required' => 0,
1530 'conditional_logic' => 0,
1531 'wrapper' => array(
1532 'width' => '',
1533 'class' => '',
1534 'id' => '',
1535 ),
1536 'default_value' => '',
1537 'placeholder' => '',
1538 'prepend' => '',
1539 'append' => '',
1540 'maxlength' => '',
1541 ),
1542 array(
1543 'key' => 'field_item_published',
1544 'label' => 'Item published',
1545 'name' => 'item_published',
1546 'type' => 'text',
1547 'instructions' => '',
1548 'required' => 0,
1549 'conditional_logic' => 0,
1550 'wrapper' => array(
1551 'width' => '',
1552 'class' => '',
1553 'id' => '',
1554 ),
1555 'default_value' => '',
1556 'placeholder' => '',
1557 'prepend' => '',
1558 'append' => '',
1559 'maxlength' => '',
1560 ),
1561 array(
1562 'key' => 'field_item_published_privately',
1563 'label' => 'Item published privately',
1564 'name' => 'item_published_privately',
1565 'type' => 'text',
1566 'instructions' => '',
1567 'required' => 0,
1568 'conditional_logic' => 0,
1569 'wrapper' => array(
1570 'width' => '',
1571 'class' => '',
1572 'id' => '',
1573 ),
1574 'default_value' => '',
1575 'placeholder' => '',
1576 'prepend' => '',
1577 'append' => '',
1578 'maxlength' => '',
1579 ),
1580 array(
1581 'key' => 'field_item_reverted_to_draft',
1582 'label' => 'Item reverted to draft',
1583 'name' => 'item_reverted_to_draft',
1584 'type' => 'text',
1585 'instructions' => '',
1586 'required' => 0,
1587 'conditional_logic' => 0,
1588 'wrapper' => array(
1589 'width' => '',
1590 'class' => '',
1591 'id' => '',
1592 ),
1593 'default_value' => '',
1594 'placeholder' => '',
1595 'prepend' => '',
1596 'append' => '',
1597 'maxlength' => '',
1598 ),
1599 array(
1600 'key' => 'field_item_scheduled',
1601 'label' => 'Item scheduled',
1602 'name' => 'item_scheduled',
1603 'type' => 'text',
1604 'instructions' => '',
1605 'required' => 0,
1606 'conditional_logic' => 0,
1607 'wrapper' => array(
1608 'width' => '',
1609 'class' => '',
1610 'id' => '',
1611 ),
1612 'default_value' => '',
1613 'placeholder' => '',
1614 'prepend' => '',
1615 'append' => '',
1616 'maxlength' => '',
1617 ),
1618 array(
1619 'key' => 'field_item_updated',
1620 'label' => 'Item updated',
1621 'name' => 'item_updated',
1622 'type' => 'text',
1623 'instructions' => '',
1624 'required' => 0,
1625 'conditional_logic' => 0,
1626 'wrapper' => array(
1627 'width' => '',
1628 'class' => '',
1629 'id' => '',
1630 ),
1631 'default_value' => '',
1632 'placeholder' => '',
1633 'prepend' => '',
1634 'append' => '',
1635 'maxlength' => '',
1636 ),
1637 array(
1638 'key' => 'field_enter_title',
1639 'label' => 'Enter Title',
1640 'name' => 'enter_title',
1641 'type' => 'text',
1642 'instructions' => '',
1643 'required' => 0,
1644 'conditional_logic' => 0,
1645 'wrapper' => array(
1646 'width' => '',
1647 'class' => '',
1648 'id' => '',
1649 ),
1650 'default_value' => '',
1651 'placeholder' => '',
1652 'prepend' => '',
1653 'append' => '',
1654 'maxlength' => '',
1655 ),
1656 ),
1657 ),
1658 array(
1659 'key' => 'field_tab_capability',
1660 'label' => 'Capability',
1661 'name' => '',
1662 'type' => 'tab',
1663 'instructions' => '',
1664 'required' => 0,
1665 'conditional_logic' => 0,
1666 'wrapper' => array(
1667 'width' => '',
1668 'class' => '',
1669 'id' => '',
1670 ),
1671 'placement' => 'top',
1672 'endpoint' => 0,
1673 ),
1674 array(
1675 'key' => 'field_capability_type',
1676 'label' => 'Capability type',
1677 'name' => 'capability_type',
1678 'type' => 'textarea',
1679 'instructions' => __('The string to use to build the read, edit, and delete capabilities.<br />May be passed as an array to allow for alternative plurals when using this argument as a base to construct the capabilities, like this:<br /><br />story<br />stories', 'acfe'),
1680 'required' => 0,
1681 'conditional_logic' => 0,
1682 'wrapper' => array(
1683 'width' => '',
1684 'class' => '',
1685 'id' => '',
1686 ),
1687 'default_value' => 'post',
1688 'placeholder' => '',
1689 'maxlength' => '',
1690 'rows' => '',
1691 'new_lines' => '',
1692 'encode_value' => true,
1693 ),
1694 array(
1695 'key' => 'field_capabilities',
1696 'label' => 'Capabilities',
1697 'name' => 'capabilities',
1698 'type' => 'textarea',
1699 'instructions' => __('An array of the capabilities for this post type. Specify capabilities like this:<br /><br />edit_post : edit_book<br />read_post : read_book<br />delete_post : delete_book<br />edit_posts : edit_books<br />publish_posts : publish_books<br />etc...', 'acfe'),
1700 'required' => 0,
1701 'conditional_logic' => 0,
1702 'wrapper' => array(
1703 'width' => '',
1704 'class' => '',
1705 'id' => '',
1706 ),
1707 'default_value' => '',
1708 'placeholder' => '',
1709 'maxlength' => '',
1710 'rows' => '',
1711 'new_lines' => '',
1712 'encode_value' => true,
1713 ),
1714 array(
1715 'key' => 'field_map_meta_cap',
1716 'label' => 'Map meta cap',
1717 'name' => 'map_meta_cap',
1718 'type' => 'select',
1719 'instructions' => __('Whether to use the internal default meta capability handling. Default: null.<br/><br/>If set it to false then standard admin role can\'t edit the posts types. Then the <code>edit_post</code> capability must be added to all roles to add or edit the posts types.', 'acfe'),
1720 'required' => 0,
1721 'conditional_logic' => 0,
1722 'wrapper' => array(
1723 'width' => '',
1724 'class' => '',
1725 'id' => '',
1726 ),
1727 'choices' => array(
1728 'null' => 'Null (default)',
1729 'false' => 'False',
1730 'true' => 'True',
1731 ),
1732 'default_value' => array(
1733 0 => 'null',
1734 ),
1735 'allow_null' => 0,
1736 'multiple' => 0,
1737 'ui' => 0,
1738 'return_format' => 'value',
1739 'ajax' => 0,
1740 'placeholder' => '',
1741 'unparse_type' => true,
1742 ),
1743 array(
1744 'key' => 'field_tab_rest',
1745 'label' => 'REST',
1746 'name' => '',
1747 'type' => 'tab',
1748 'instructions' => '',
1749 'required' => 0,
1750 'conditional_logic' => 0,
1751 'wrapper' => array(
1752 'width' => '',
1753 'class' => '',
1754 'id' => '',
1755 ),
1756 'placement' => 'top',
1757 'endpoint' => 0,
1758 ),
1759 array(
1760 'key' => 'field_show_in_rest',
1761 'label' => 'Show in rest',
1762 'name' => 'show_in_rest',
1763 'type' => 'true_false',
1764 'instructions' => __('Whether to expose this post type in the REST API. Must be true to enable the Gutenberg editor. Default: false.', 'acfe'),
1765 'required' => 0,
1766 'conditional_logic' => 0,
1767 'wrapper' => array(
1768 'width' => '',
1769 'class' => '',
1770 'id' => '',
1771 ),
1772 'message' => '',
1773 'default_value' => 0,
1774 'ui' => 1,
1775 'ui_on_text' => '',
1776 'ui_off_text' => '',
1777 ),
1778 array(
1779 'key' => 'field_rest_base',
1780 'label' => 'Rest base',
1781 'name' => 'rest_base',
1782 'type' => 'text',
1783 'instructions' => __('The base slug that this post type will use when accessed using the REST API: Default: <code>name</code>.', 'acfe'),
1784 'required' => 0,
1785 'conditional_logic' => 0,
1786 'wrapper' => array(
1787 'width' => '',
1788 'class' => '',
1789 'id' => '',
1790 ),
1791 'default_value' => '',
1792 'placeholder' => '',
1793 'prepend' => '',
1794 'append' => '',
1795 'maxlength' => '',
1796 ),
1797 array(
1798 'key' => 'field_rest_controller_class',
1799 'label' => 'Rest controller class',
1800 'name' => 'rest_controller_class',
1801 'type' => 'text',
1802 'instructions' => __('An optional custom controller to use instead of <a href="https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/" target="_blank">WP_REST_Posts_Controller</a>. Must be a subclass of <a href="https://developer.wordpress.org/reference/classes/wp_rest_controller/" target="_blank">WP_REST_Controller</a>. Default: <a href="https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/" target="_blank">WP_REST_Posts_Controller</a>.', 'acfe'),
1803 'required' => 0,
1804 'conditional_logic' => 0,
1805 'wrapper' => array(
1806 'width' => '',
1807 'class' => '',
1808 'id' => '',
1809 ),
1810 'default_value' => 'WP_REST_Posts_Controller',
1811 'placeholder' => '',
1812 'prepend' => '',
1813 'append' => '',
1814 'maxlength' => '',
1815 ),
1816 ),
1817 );
1818
1819 return $field_groups;
1820
1821 }
1822
1823 }
1824
1825 acf_new_instance('acfe_module_post_type_field_groups');
1826
1827 endif;