acf_prepare_field_group_for_export()ACF 5.0.0

acf_prepare_field_group_for_export

Returns a modified field group ready for export.

Хуки из функции

Возвращает

Массив.

Использование

acf_prepare_field_group_for_export( $field_group );
$field_group(массив)
The field group array.
По умолчанию: array()

Список изменений

С версии 5.0.0 Введена.

Код acf_prepare_field_group_for_export() ACF 5.10.2

function acf_prepare_field_group_for_export( $field_group = array() ) {

	// Remove args.
	acf_extract_vars( $field_group, array( 'ID', 'local', '_valid' ) );

	// Prepare fields.
	$field_group['fields'] = acf_prepare_fields_for_export( $field_group['fields'] );

	/**
	 * Filters the $field_group array before being returned to the export tool.
	 *
	 * @date    12/02/2014
	 * @since   5.0.0
	 *
	 * @param   array $field_group The $field group array.
	 */
	return apply_filters( 'acf/prepare_field_group_for_export', $field_group );
}