WC_Settings_Page::get_own_sections()
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' ), );
Метод класса: WC_Settings_Page{}
Хуков нет.
Возвращает
Массив
. An associative array where keys are section identifiers and the values are translated section names.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_own_sections();
Код WC_Settings_Page::get_own_sections() WC Settings Page::get own sections WC 9.6.1
protected function get_own_sections() { return array( '' => __( 'General', 'woocommerce' ) ); }