acf_prepare_field_for_export()
acf_prepare_field_for_export
Returns a modified field ready for export.
Хуки из функции
Возвращает
Массив
.
Использование
acf_prepare_field_for_export( $field );
- $field(массив) (обязательный)
- The field array.
Список изменений
С версии 5.0.0 | Введена. |
Код acf_prepare_field_for_export() acf prepare field for export ACF 6.0.4
function acf_prepare_field_for_export( $field ) { // Remove args. acf_extract_vars( $field, array( 'ID', 'prefix', 'value', 'menu_order', 'id', 'class', 'parent', '_name', '_prepare', '_valid' ) ); /** * Filters the $field array before being returned to the export tool. * * @date 12/02/2014 * @since 5.0.0 * * @param array $field The field array. */ return apply_filters( 'acf/prepare_field_for_export', $field ); }