Prepare Field Group

This filter is a cousin of the native acf/prepare_field hook but for Field Groups. It allows developers to change field groups settings right before it is rendered on Post/User/Term/Options Pages Edit screen.

Just like its cousin, it is also possible to return false to hide the field group.

/*
 * ACFE Prepare Field Group
 * 
 * @array   $field_group  Field Group Array
 */
 
filter('acfe/prepare_field_group',                         $field_group);
filter('acfe/prepare_field_group/ID=12',                   $field_group);
filter('acfe/prepare_field_group/key=group_5ffd27b7d0c62', $field_group);

Render Field Group

This action is a cousin of the native acf/render_field hook but for Field Groups. It allows developers to display custom data after the Field Group render on Post/User/Term/Options Pages Edit screen.

/*
 * ACFE Render Field Group
 * 
 * @array   $field_group  Field Group Array
 * @array   $fields       Fields Array
 * @string  $post_id      Current Post ID
 */
 
action('acfe/render_field_group',                         $field_group, $fields, $post_id);
action('acfe/render_field_group/ID=12',                   $field_group, $fields, $post_id);
action('acfe/render_field_group/key=group_5ffd27b7d0c62', $field_group, $fields, $post_id);

Pre-Render Field Group

This action is a variant of acfe/render_field_group hook but is executed before the Field Group Render.

/*
 * ACFE Pre-Render Field Group
 * 
 * @array   $field_group  Field Group Array
 * @array   $fields       Fields Array
 * @string  $post_id      Current Post ID
 */
 
action('acfe/pre_render_field_group',                         $field_group, $fields, $post_id);
action('acfe/pre_render_field_group/ID=12',                   $field_group, $fields, $post_id);
action('acfe/pre_render_field_group/key=group_5ffd27b7d0c62', $field_group, $fields, $post_id);