WC_Settings_Advanced::get_own_sections()protectedWC 1.0

Get own sections.

Method of the class: WC_Settings_Advanced{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_own_sections();

WC_Settings_Advanced::get_own_sections() code WC 9.7.1

protected function get_own_sections() {
	$sections = array(
		''                => __( 'Page setup', 'woocommerce' ),
		'keys'            => __( 'REST API', 'woocommerce' ),
		'webhooks'        => __( 'Webhooks', 'woocommerce' ),
		'legacy_api'      => __( 'Legacy API', 'woocommerce' ),
		'woocommerce_com' => __( 'WooCommerce.com', 'woocommerce' ),
	);

	if ( Features::is_enabled( 'blueprint' ) ) {
		$sections['blueprint'] = __( 'Blueprint', 'woocommerce' );
	}

	return $sections;
}