acf_is_post_type_key()ACF 6.1

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

Хуков нет.

Возвращает

true|false.

Использование

acf_is_post_type_key( $id );
$id(строка) (обязательный)
The identifier.

Список изменений

С версии 6.1 Введена.

Код acf_is_post_type_key() ACF 6.4.2

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