WC_Settings_Page::get_sectionspublicWC 1.0

Get all sections for this page, both the own ones and the ones defined via filters.

Method of the class: WC_Settings_Page{}

Hooks from the method

Returns

Array.

Usage

$WC_Settings_Page = new WC_Settings_Page();
$WC_Settings_Page->get_sections();

WC_Settings_Page::get_sections() code WC 9.9.4

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 );
}