Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

ProductFormTemplateInterface::get_block_by_id()publicWC 1.0

Gets Block by id.

Method of the class: ProductFormTemplateInterface{}

No Hooks.

Return

BlockInterface|null.

Usage

$ProductFormTemplateInterface = new ProductFormTemplateInterface();
$ProductFormTemplateInterface->get_block_by_id( $block_id ): ?BlockInterface;
$block_id(string) (required)
block id.

ProductFormTemplateInterface::get_block_by_id() code WC 9.0.1

public function get_block_by_id( string $block_id ): ?BlockInterface;