Automattic\WooCommerce\Internal\Api
Settings::add_section
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() 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;
}