acf_export_internal_post_type_as_php()ACF 6.1

Exports an ACF post as PHP.

Хуков нет.

Возвращает

Строку|true|false.

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

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

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

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

Код acf_export_internal_post_type_as_php() ACF 6.4.2

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

	if ( $instance ) {
		return $instance->export_post_as_php( $post );
	}

	return false;
}