acf_has_block_type()ACF 5.7.12

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 6.0.4

function acf_has_block_type( $name ) {
	return acf_get_store( 'block-types' )->has( $name );
}