WC_Settings_Page::get_own_sections │ protected │ WC 1.0

Get own sections for this page. Derived classes should override this method if they define sections. There should always be one default section with an empty string as identifier.

Example: return array( '' => __( 'General', 'woocommerce' ), 'foobars' => __( 'Foos & Bars', 'woocommerce' ), );

Method of the class: WC_Settings_Page{}

No Hooks.

Returns

array. An associative array where keys are section identifiers and the values are translated section names.

Usage

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

WC_Settings_Page::get_own_sections() code WC 11.1.2

protected function get_own_sections() {
	return array( '' => __( 'General', 'woocommerce' ) );
}