Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $meta_boxes[] = array(
- 'title' => 'Multi-level nested groups',
- 'fields' => array(
- array(
- 'id' => 'group4',
- 'type' => 'group',
- 'clone' => true,
- 'fields' => array(
- // Normal field (cloned)
- array(
- 'name' => 'Text',
- 'id' => 'text4',
- 'type' => 'text',
- 'clone' => true,
- ),
- // Nested group level 2
- array(
- 'name' => 'Sub group',
- 'id' => 'group2',
- 'type' => 'group',
- 'clone' => true,
- 'fields' => array(
- // Normal field (cloned)
- array(
- 'name' => 'Sub text',
- 'id' => 'text4',
- 'type' => 'text',
- 'clone' => true,
- ),
- ),
- ),
- ),
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement