acf_is_local_internal_post_type()
Returns true if an ACF post exists for the given key.
Хуков нет.
Возвращает
true|false
.
Использование
acf_is_local_internal_post_type( $key, $post_type );
- $key(строка)
- The ACF key.
По умолчанию: '' - $post_type(строка)
- The ACF post type.
По умолчанию: 'acf-field-group'
Список изменений
С версии 6.1 | Введена. |
Код acf_is_local_internal_post_type() acf is local internal post type ACF 6.4.2
function acf_is_local_internal_post_type( $key = '', $post_type = 'acf-field-group' ) { return acf_get_local_store( '', $post_type )->has( $key ); }