Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
UI::add_section
Injects our new settings section (when approved directory rules are disabled, it will not show).
Метод класса: UI{}
Хуков нет.
Возвращает
array.
Использование
$UI = new UI(); $UI->add_section( $sections ): array;
- $sections(массив) (обязательный)
- Other admin settings sections.
Код UI::add_section() UI::add section WC 11.1.1
public function add_section( array $sections ): array {
$sections['download_urls'] = __( 'Approved download directories', 'woocommerce' );
return $sections;
}