WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks

BlockTypesController::register_blocks() public WC 1.0

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

{} It's a method of the class: BlockTypesController{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of BlockTypesController::register_blocks() WC 5.6.0

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 );
	}
}