WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

Automattic\WooCommerce\Blocks

BlockTypesController::register_blocks() public WC 1.0

Register blocks, hooking up assets and render functions as needed.

{} Это метод класса: BlockTypesController{}

Хуков нет.

Возвращает

null. Ничего.

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

$BlockTypesController = new BlockTypesController();
$BlockTypesController->register_blocks();

Код BlockTypesController::register_blocks() WC 5.4.1

<?php
public function register_blocks() {
	$block_types = $this->get_block_types();

	foreach ( $block_types as $block_type ) {
		$block_type_class    = __NAMESPACE__ . '\\BlockTypes\\' . $block_type;
		$block_type_instance = new $block_type_class( $this->asset_api, $this->asset_data_registry, new IntegrationRegistry() );
	}

	foreach ( self::get_atomic_blocks() as $block_type ) {
		$block_type_instance = new AtomicBlock( $this->asset_api, $this->asset_data_registry, new IntegrationRegistry(), $block_type );
	}
}