acf_is_post_type()ACF 6.1

Returns true if the given params match an ACF post type.

No Hooks.

Returns

true|false.

Usage

acf_is_post_type( $post_type );
$post_type(array) (required)
The ACF post type array.

Changelog

Since 6.1 Introduced.

acf_is_post_type() code ACF 6.8.8

function acf_is_post_type( $post_type ) {
	return acf_is_internal_post_type( $post_type, 'acf-post-type' );
}