Skip to content

Instantly share code, notes, and snippets.

@theMikeD
Created September 15, 2016 12:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theMikeD/217e79779fbd579b0ef1ac40db0dae24 to your computer and use it in GitHub Desktop.
Save theMikeD/217e79779fbd579b0ef1ac40db0dae24 to your computer and use it in GitHub Desktop.
Adds a section to the ACF field groups page fora notes section
<?php
// Add additional setting option called "Notes"
add_action('acf/render_field_group_settings', 'my_acf_add_field_group_notes');
function my_acf_add_field_group_notes($field_group){
acf_render_field_wrap(array(
'label' => __('Notes','acf'),
'instructions' => __('Notes','acf'),
'type' => 'textarea',
'name' => 'notes',
'prefix' => 'acf_field_group',
'value' => ( isset($field_group['notes']) ) ? $field_group['notes'] : '',
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment