save_acpt_meta_box

save_acpt_meta_box

Create/edit a form meta box.

Usage

save_acpt_meta_box([
   'group_name' => 'group',
   'name' => 'new-box',
   'label' => 'New box',
   'new_name' => 'new-box-modified',
   'fields' => [
      [
      	'name' => 'field',
	'label' => 'field',
	'type' => 'text',
	'show_in_archive' => false,
	'is_required' => false,
	'default_value' => "foo",
	'description' => "lorem ipsum dolor facium",
      ]
   ],
]);

Parameters

  • group_name (string) (Required) The group name

  • name (string) (Required) The box name

  • new_name (string) (Optional) The new box name, if you are modifying an already saved box

  • label (string) (Optional) The box label

  • fields (array) (Optional) The fields array

Return

  • boolean

Last updated