acf_remove_block_type() │ ACF 5.7.12

Removes a block type for the given name.

Хуков нет.

Возвращает

void. Ничего (null).

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

acf_remove_block_type( $name );
$name(строка) (обязательный)
The block type name.

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

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

Код acf_remove_block_type() ACF 6.8.8

function acf_remove_block_type( $name ) {
	acf_get_store( 'block-types' )->remove( $name );
}