Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
UI::add_section()
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() UI::add section code WC 9.7.1
public function add_section( array $sections ): array { $sections['download_urls'] = __( 'Approved download directories', 'woocommerce' ); return $sections; }