Automattic\WooCommerce\Internal\Api

Settings::add_sectionpublicWC 1.0

Append the GraphQL section to the Advanced settings tab.

Method of the class: Settings{}

No Hooks.

Returns

array.

Usage

$Settings = new Settings();
$Settings->add_section( $sections ): array;
$sections(array) (required)
Existing sections keyed by id.

Settings::add_section() code WC 11.0.1

public function add_section( array $sections ): array {
	if ( Main::is_enabled() ) {
		$sections[ self::SECTION_ID ] = __( 'GraphQL', 'woocommerce' );
	}
	return $sections;
}