acf_import_post_type()ACF 6.1

Imports an ACF post type into the database.

No Hooks.

Returns

Array. The imported post type.

Usage

acf_import_post_type( $post_type );
$post_type(array) (required)
The ACF post type array.

Changelog

Since 6.1 Introduced.

acf_import_post_type() code ACF 6.8.8

function acf_import_post_type( array $post_type ) {
	return acf_import_internal_post_type( $post_type, 'acf-post-type' );
}