Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates
SectionInterface::add_section()
Устарела с версии 8.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Adds a new sub-section to the section.
Метод класса: SectionInterface{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SectionInterface = new SectionInterface(); $SectionInterface->add_section( $block_config ): SubsectionInterface;
- $block_config(массив) (обязательный)
- The block data.
Список изменений
Устарела с | 8.6.0 |
Код SectionInterface::add_section() SectionInterface::add section WC 9.7.1
public function add_section( array $block_config ): SubsectionInterface;