Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates

ProductFormTemplateInterface::get_section_by_id()publicWC 1.0

Gets Section block by id.

Метод класса: ProductFormTemplateInterface{}

Хуков нет.

Возвращает

SectionInterface|null.

Использование

$ProductFormTemplateInterface = new ProductFormTemplateInterface();
$ProductFormTemplateInterface->get_section_by_id( $section_id ): ?SectionInterface;
$section_id(строка) (обязательный)
section id.

Код ProductFormTemplateInterface::get_section_by_id() WC 9.7.1

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