Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
ProductFormTemplateInterface::get_subsection_by_id()
Gets subsection block by id.
Method of the class: ProductFormTemplateInterface{}
No Hooks.
Returns
SubsectionInterface|null
.
Usage
$ProductFormTemplateInterface = new ProductFormTemplateInterface(); $ProductFormTemplateInterface->get_subsection_by_id( $subsection_id ): ?SubsectionInterface;
- $subsection_id(string) (required)
- subsection id.
ProductFormTemplateInterface::get_subsection_by_id() ProductFormTemplateInterface::get subsection by id code WC 9.8.5
public function get_subsection_by_id( string $subsection_id ): ?SubsectionInterface;