acf_delete_post_type()
Deletes an ACF post type from the database.
No Hooks.
Returns
true|false. True if post type was deleted.
Usage
acf_delete_post_type( $id );
- $id(int|string)
- The ACF post type ID, key or name.
Changelog
| Since 6.1 | Introduced. |
acf_delete_post_type() acf delete post type code ACF 6.8.8
function acf_delete_post_type( $id = 0 ) {
return acf_delete_internal_post_type( $id, 'acf-post-type' );
}