acf_import_post_type()
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() 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' );
}