acf_update_post_type()
Updates an ACF post type in the database.
No Hooks.
Returns
array.
Usage
acf_update_post_type( $post_type );
- $post_type(array) (required)
- The main ACF post type array.
Changelog
| Since 6.1 | Introduced. |
acf_update_post_type() acf update post type code ACF 6.8.8
function acf_update_post_type( array $post_type ) {
return acf_update_internal_post_type( $post_type, 'acf-post-type' );
}