acf/field_group/auto_add_first_field

acf/field_group/auto_add_first_field

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.2.2

apply_filters('acf/field_group/auto_add_first_field') is found 1 times:

  • /includes/admin/views/acf-field-group/fields.php line 23
    	 * @since   6.2
    	 *
    	 * @param bool $bool If an empty field group should render with a new field auto appended.
    	 */
    	if ( apply_filters( 'acf/field_group/auto_add_first_field', true ) ) {
    		$wrapper_class = ' acf-auto-add-field';
    	} else {
    		$wrapper_class = ' -empty';
    	}
    }
    ?>