Automattic\WooCommerce\Admin\BlockTemplates
ContainerInterface::get_block()
Get a block by ID.
Method of the class: ContainerInterface{}
No Hooks.
Return
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 9.7.1
public function get_block( string $block_id ): ?BlockInterface;