acf/prepare_fields_for_import хук-фильтрACF 5.0.0

Filters the $fields array before being returned to the import tool.

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

add_filter( 'acf/prepare_fields_for_import', 'wp_kama_acf_prepare_fields_for_import_filter' );

/**
 * Function for `acf/prepare_fields_for_import` filter-hook.
 * 
 * @param array $fields The array of fields.
 *
 * @return array
 */
function wp_kama_acf_prepare_fields_for_import_filter( $fields ){

	// filter...
	return $fields;
}
$fields(массив)
The array of fields.

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

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

Где вызывается хук

acf_prepare_fields_for_import()
acf/prepare_fields_for_import
acf/includes/acf-field-functions.php 1594
return apply_filters( 'acf/prepare_fields_for_import', $fields );

Где используется хук в Advanced Custom Fields PRO

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