Nuxy
Search…
Add submenu
You can split tab to several submenus
Submenus generated from tab fields. Add submenu parameter to field and tab will become splitted with addition menus
Example usage:
1
'tab_1' => array(
2
3
//----And its name obviously
4
5
'name' => esc_html__( 'Tab 1', 'my-domain' ),
6
'label' => esc_html__( 'Tab 1 Label ', 'my-domain' ),
7
'icon' => 'fa fa-camera',
8
9
'fields' => array(
10
11
//field key and its settings. Full info about fields read in documentation.
12
13
'field' => array(
14
'type' => 'text',
15
'label' => esc_html__( 'Text 1', 'my-domain' ),
16
'submenu' => esc_html__( 'Submenu 1', 'my-domain' ),
17
),
18
'field_2' => array(
19
'type' => 'text',
20
'label' => esc_html__( 'Text 2', 'my-domain' ),
21
'submenu' => esc_html__( 'Submenu 2', 'my-domain' ),
22
),
23
'field_3' => array(
24
'type' => 'text',
25
'label' => esc_html__( 'Text 3', 'my-domain' ),
26
'submenu' => esc_html__( 'Submenu 3', 'my-domain' ),
27
),
28
'field_4' => array(
29
'type' => 'text',
30
'label' => esc_html__( 'Text 4', 'my-domain' ),
31
'submenu' => esc_html__( 'Submenu 4', 'my-domain' ),
32
),
33
34
35
)
36
),
Copied!
Last modified 11mo ago
Copy link