Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
ProductFormTemplateInterface::get_subsection_by_id()
Gets subsection block by id.
Метод класса: ProductFormTemplateInterface{}
Хуков нет.
Возвращает
SubsectionInterface|null
.
Использование
$ProductFormTemplateInterface = new ProductFormTemplateInterface(); $ProductFormTemplateInterface->get_subsection_by_id( $subsection_id ): ?SubsectionInterface;
- $subsection_id(строка) (обязательный)
- subsection id.
Код ProductFormTemplateInterface::get_subsection_by_id() ProductFormTemplateInterface::get subsection by id WC 9.7.1
public function get_subsection_by_id( string $subsection_id ): ?SubsectionInterface;