Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

UI::add_section()publicWC 1.0

Injects our new settings section (when approved directory rules are disabled, it will not show).

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

Хуков нет.

Возвращает

Массив.

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

$UI = new UI();
$UI->add_section( $sections ): array;
$sections(массив) (обязательный)
Other admin settings sections.

Код UI::add_section() WC 8.7.0

public function add_section( array $sections ): array {
	$sections['download_urls'] = __( 'Approved download directories', 'woocommerce' );
	return $sections;
}