acf_import_internal_post_type()ACF 6.1

Imports an ACF post into the database.

Хуков нет.

Возвращает

Массив. The imported post.

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

acf_import_internal_post_type( $post, $post_type );
$post(массив) (обязательный)
The ACF post array.
$post_type(строка) (обязательный)
The post type of the ACF post being imported.

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

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

Код acf_import_internal_post_type() ACF 6.4.2

function acf_import_internal_post_type( $post, $post_type ) {
	$instance = acf_get_internal_post_type_instance( $post_type );

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

	return $post;
}