Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
ProductFormTemplateInterface::get_group_by_id()
Gets Group block by id.
Method of the class: ProductFormTemplateInterface{}
No Hooks.
Returns
GroupInterface|null
.
Usage
$ProductFormTemplateInterface = new ProductFormTemplateInterface(); $ProductFormTemplateInterface->get_group_by_id( $group_id ): ?GroupInterface;
- $group_id(string) (required)
- group id.
ProductFormTemplateInterface::get_group_by_id() ProductFormTemplateInterface::get group by id code WC 9.8.4
public function get_group_by_id( string $group_id ): ?GroupInterface;