acf_has_block_type()
Returns true if a block type exists for the given name.
Хуков нет.
Возвращает
true|false.
Использование
acf_has_block_type( $name );
- $name(строка) (обязательный)
- The block type name.
Список изменений
| С версии 5.7.12 | Введена. |
Код acf_has_block_type() acf has block type ACF 6.4.2
function acf_has_block_type( $name ) {
return acf_get_store( 'block-types' )->has( $name );
}