-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathacf-fields.php
More file actions
41 lines (39 loc) · 834 Bytes
/
acf-fields.php
File metadata and controls
41 lines (39 loc) · 834 Bytes
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
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( function_exists( 'register_field_group' ) ) {
register_field_group( array(
'id' => 'acf_todo',
'title' => 'Todo',
'fields' => array(
array(
'key' => 'field_56929f3f6a98a',
'label' => 'Done',
'name' => 'done',
'type' => 'true_false',
'message' => '',
'default_value' => 0,
'show_in_rest' => true,
'edit_in_rest' => true,
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'todo',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array(
'position' => 'normal',
'layout' => 'no_box',
'hide_on_screen' => array( 'the_content' ),
),
'menu_order' => 0,
) );
}