Automattic\WooCommerce\Admin\BlockTemplates
ContainerInterface::get_block
Get a block by ID.
Method of the class: ContainerInterface{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ContainerInterface = new ContainerInterface(); $ContainerInterface->get_block( $block_id ): ?BlockInterface;
- $block_id(string) (required)
- The block ID.
ContainerInterface::get_block() ContainerInterface::get block code WC 10.5.0
public function get_block( string $block_id ): ?BlockInterface;