Automattic\WooCommerce\Blocks
BlockTypesController::register_blocks()
Register blocks, hooking up assets and render functions as needed.
Method of the class: BlockTypesController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$BlockTypesController = new BlockTypesController(); $BlockTypesController->register_blocks();
BlockTypesController::register_blocks() BlockTypesController::register blocks code WC 9.3.3
public function register_blocks() { $block_types = $this->get_block_types(); foreach ( $block_types as $block_type ) { $block_type_class = __NAMESPACE__ . '\\BlockTypes\\' . $block_type; new $block_type_class( $this->asset_api, $this->asset_data_registry, new IntegrationRegistry() ); } }