Advertisement
Guest User

Untitled

a guest
May 17th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.82 KB | None | 0 0
  1. add_action( 'rwmb_meta_boxes', function( $meta_boxes ) {
  2. $meta_boxes[] = array(
  3.     'title' => 'Directory',
  4.     'type'  => 'user', // Specifically for user
  5.     'fields' => array(
  6.         array(
  7.             'name' => 'Which directory',
  8.             'id'   => 'Which',
  9.             'type' => 'checkbox_list',
  10.              'options' => array(
  11.                 'public' => 'public',
  12.                 'members' => 'members only'
  13.             ),
  14.         ),
  15.     ),
  16. );
  17.  
  18. $meta_boxes[] = array(
  19.     'title' => 'location',
  20.     'type'  => 'user', // Specifically for user
  21. 'fields' => array(
  22.    array(
  23.             'name' => 'Location',
  24.             'id'   => '7',
  25.             'type' => 'checkbox_list',
  26.              'options' => array(
  27.                 'brisbane' => 'brisbane',
  28.                 'melbourne'   => 'melbourne',
  29.                 'sydney' => 'sydney',
  30.                 'adelaide'   => 'adelaide'
  31.         ),
  32.       ),
  33.     ),
  34. );
  35.  
  36. $meta_boxes[] = array(
  37.     'title' => 'Speciality',
  38.     'type'  => 'user', // Specifically for user
  39. 'fields' => array(
  40.    array(
  41.             'name' => 'Speciality',
  42.             'id'   => 'Speciality',
  43.             'type' => 'checkbox_list',
  44.              'options' => array(
  45.                 'bridges' => 'bridges',
  46.                 'roads'   => 'roads',
  47.                 'high rises' => 'high rises'
  48.              ),
  49.       ),
  50.     ),
  51. );
  52.  
  53.   $meta_boxes[] = array(
  54.     'title' => 'Membership type',
  55.     'type'  => 'user', // Specifically for user
  56. 'fields' => array(
  57.    array(
  58.             'name' => 'Membership type',
  59.             'id'   => 'Membership_type',
  60.             'type' => 'select_advanced',
  61.              'options' => array(
  62.                 'contractor' => 'contractor',
  63.                 'associate'   => 'associate'
  64.              ),
  65.       ),
  66.     ),
  67. );
  68.  
  69. return $meta_boxes;
  70. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement