Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

ProductFormTemplateInterface::get_section_by_id()publicWC 1.0

Gets Section block by id.

Method of the class: ProductFormTemplateInterface{}

No Hooks.

Return

SectionInterface|null.

Usage

$ProductFormTemplateInterface = new ProductFormTemplateInterface();
$ProductFormTemplateInterface->get_section_by_id( $section_id ): ?SectionInterface;
$section_id(string) (required)
section id.

ProductFormTemplateInterface::get_section_by_id() code WC 9.0.1

public function get_section_by_id( string $section_id ): ?SectionInterface;