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).

Method of the class: UI{}

No Hooks.

Return

Array.

Usage

$UI = new UI();
$UI->add_section( $sections ): array;
$sections(array) (required)
Other admin settings sections.

UI::add_section() code WC 8.7.0

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