Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
ProductFormTemplateInterface::get_section_by_id
Gets Section block by id.
Method of the class: ProductFormTemplateInterface{}
No Hooks.
Returns
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() ProductFormTemplateInterface::get section by id code WC 10.5.0
public function get_section_by_id( string $section_id ): ?SectionInterface;