Skip to content

Instantly share code, notes, and snippets.

@hawkidoki
Last active January 4, 2018 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkidoki/cc95bdaba4a5b4ee224ae594ccd03c8e to your computer and use it in GitHub Desktop.
Save hawkidoki/cc95bdaba4a5b4ee224ae594ccd03c8e to your computer and use it in GitHub Desktop.
<?php
add_action('acf/render_field_group_settings', 'hwk_acf_field_groups_add_settings_tabs', 10);
function hwk_acf_field_groups_add_settings_tabs($group){
// Tab
acf_render_field_wrap(array(
'label' => __('Basic','acf'),
'type' => 'tab',
'name' => 'hwk_tab_basic',
'key' => 'hwk_tab_basic',
'prefix' => 'acf_field_group',
'placement' => 'top',
'endpoint' => 0
));
// Accordion
acf_render_field_wrap(array(
'label' => __('Accordion','acf'),
'instructions' => __('Instructions','acf'),
'type' => 'accordion',
'name' => 'hwk_accordion',
'key' => 'hwk_accordion',
'prefix' => 'acf_field_group',
'open' => false, // true | false
'multi_expand' => false, // true | false
'endpoint' => 0
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment