acf_prepare_internal_post_type_for_export()ACF 6.1

Returns a modified field group ready for export.

Хуков нет.

Возвращает

Массив.

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

acf_prepare_internal_post_type_for_export( $post, $post_type );
$post(массив)
The ACF post array.
По умолчанию: array()
$post_type(строка)
The post type of the ACF post being exported.
По умолчанию: 'acf-field-group'

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

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

Код acf_prepare_internal_post_type_for_export() ACF 6.4.2

function acf_prepare_internal_post_type_for_export( $post = array(), $post_type = 'acf-field-group' ) {
	$instance = acf_get_internal_post_type_instance( $post_type );

	if ( $instance ) {
		$post = $instance->prepare_post_for_export( $post );
	}

	return $post;
}