Advertisement
Guest User

Untitled

a guest
May 15th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. $meta_boxes[] = array(
  2.         'title'  => 'Multi-level nested groups',
  3.         'fields' => array(
  4.             array(
  5.                 'id'     => 'group4',
  6.                 'type'   => 'group',
  7.                 'clone'  => true,
  8.                 'fields' => array(
  9.                     // Normal field (cloned)
  10.                     array(
  11.                         'name'  => 'Text',
  12.                         'id'    => 'text4',
  13.                         'type'  => 'text',
  14.                         'clone' => true,
  15.                     ),
  16.                     // Nested group level 2
  17.                     array(
  18.                         'name'   => 'Sub group',
  19.                         'id'     => 'group2',
  20.                         'type'   => 'group',
  21.                         'clone'  => true,
  22.                         'fields' => array(
  23.                             // Normal field (cloned)
  24.                             array(
  25.                                 'name'  => 'Sub text',
  26.                                 'id'    => 'text4',
  27.                                 'type'  => 'text',
  28.                                 'clone' => true,
  29.                             ),
  30.                         ),
  31.                     ),
  32.                 ),
  33.             ),
  34.         ),
  35.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement