Nuxy
Search…
Fields group
Sometimes you need to show belonging to one group of settings
First three options visually grouped in one block.
Just add to start field:
1
'group' => 'started',
Copied!
And in end of group:
1
'group' => 'ended',
Copied!
1
'field_1' => array(
2
'type' => 'text',
3
'group' => 'started',
4
'label' => esc_html__('Text field', 'my-domain'),
5
'hint' => esc_html__('Hint field', 'my-domain'),
6
'description' => esc_html__('Description of field', 'my-domain'),
7
'submenu' => esc_html__('General fields', 'my-domain'),
8
'placeholder' => esc_html__('Sample Config', 'my-domain'),
9
),
10
'field_1_2' => array(
11
'type' => 'text',
12
'label' => esc_html__('Text field', 'my-domain'),
13
'description' => esc_html__('Long description with a lot of text to test of fields.', 'my-domain'),
14
'submenu' => esc_html__('General fields', 'my-domain'),
15
'placeholder' => esc_html__('Sample Config', 'my-domain'),
16
),
17
'field_2' => array(
18
'type' => 'number',
19
'label' => esc_html__('Number field', 'my-domain'),
20
'step' => 20,
21
'description' => esc_html__('Long description with a lot of text to test of fields.', 'my-domain'),
22
'submenu' => esc_html__('General fields', 'my-domain'),
23
'placeholder' => esc_html__('Sample Config', 'my-domain'),
24
'group' => 'ended',
25
),
Copied!
Last modified 9mo ago
Copy link