acf_is_local_internal_post_type_key()ACF 6.1

Returns true if a local ACF post exists for the given key.

Хуков нет.

Возвращает

true|false.

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

acf_is_local_internal_post_type_key( $key, $post_type );
$key(строка)
The ACF post key.
По умолчанию: ''
$post_type(строка)
The post type to check.
По умолчанию: ''

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

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

Код acf_is_local_internal_post_type_key() ACF 6.4.2

function acf_is_local_internal_post_type_key( $key = '', $post_type = '' ) {
	return acf_get_local_store( '', $post_type )->is( $key );
}