Skip to content

Instantly share code, notes, and snippets.

@Sabuj6622
Created January 23, 2018 07:57
Show Gist options
  • Save Sabuj6622/fa2ed07e2b5e6d61331c8fa8f6d487c8 to your computer and use it in GitHub Desktop.
Save Sabuj6622/fa2ed07e2b5e6d61331c8fa8f6d487c8 to your computer and use it in GitHub Desktop.
$options[] = array(
'id' => 'neuron_work_meta',
'title' => 'Work Options',
'post_type' => 'work',
'context' => 'normal',
'priority' => 'default',
'sections' => array(
array(
'name' => 'work_meta_section_1',
'fields' => array(
array(
'id' => 'sub_title',
'type' => 'text',
'title' => 'Sub Title',
'desc' => 'Type work Sub Title',
),
array(
'id' => 'link_text',
'type' => 'text',
'title' => 'Link Text',
'desc' => 'Type work Anchor text',
'default' => 'Visit website',
),
array(
'id' => 'link',
'type' => 'text',
'title' => 'Link',
'desc' => 'Like:https://.google.com',
),
array(
'id' => 'informations',
'type' => 'group',
'title' => 'Work Informations',
'button_title' => 'Add New',
'accordion_title' => 'Add New information',
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => 'Information title',
),
array(
'id' => 'value',
'type' => 'text',
'title' => 'Information Value',
)
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment