acf_trash_post_type()ACF 6.1

Trashes an ACF post type.

No Hooks.

Returns

true|false. True if post was trashed.

Usage

acf_trash_post_type( $id );
$id(int|string)
The post type ID, key, or name.

Changelog

Since 6.1 Introduced.

acf_trash_post_type() code ACF 6.8.8

function acf_trash_post_type( $id = 0 ) {
	return acf_trash_internal_post_type( $id, 'acf-post-type' );
}