acf_is_post_type_key()ACF 6.1

Returns true if the given identifier is an ACF CPT key.

No Hooks.

Returns

true|false.

Usage

acf_is_post_type_key( $id );
$id(string) (required)
The identifier.

Changelog

Since 6.1 Introduced.

acf_is_post_type_key() code ACF 6.8.8

function acf_is_post_type_key( $id ) {
	return acf_is_internal_post_type_key( $id, 'acf-post-type' );
}