Skip to content

Instantly share code, notes, and snippets.

@hawkidoki
Last active December 16, 2017 18:38
Show Gist options
  • Save hawkidoki/12ff1a60a4108598cae40c13a64a1982 to your computer and use it in GitHub Desktop.
Save hawkidoki/12ff1a60a4108598cae40c13a64a1982 to your computer and use it in GitHub Desktop.
<?php
add_action('acf/render_field_group_settings', '_hwk_flexible_add_group_option', 10, 1);
function _hwk_flexible_add_group_option($group){
acf_render_field_wrap(array(
'label' => __('Ajouter au contenu flexible', 'acf'),
'instructions' => __('Dossier de template par défaut', 'acf'),
'type' => 'checkbox',
'name' => 'hwk_flexible_content',
'prefix' => 'acf_field_group',
'value' => ((isset($group['hwk_flexible_content'])) ? 1 : 0),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment