WC_Settings_Page::get_sections()
Get all sections for this page, both the own ones and the ones defined via filters.
Метод класса: WC_Settings_Page{}
Хуки из метода
Возвращает
Массив
.
Использование
$WC_Settings_Page = new WC_Settings_Page(); $WC_Settings_Page->get_sections();
Код WC_Settings_Page::get_sections() WC Settings Page::get sections WC 9.4.2
public function get_sections() { $sections = $this->get_own_sections(); /** * Filters the sections for this settings page. * * @since 2.2.0 * @param array $sections The sections for this settings page. */ return (array) apply_filters( 'woocommerce_get_sections_' . $this->id, $sections ); }