WC_Settings_Payment_Gateways::get_sectionspublicWC 1.0

Get all sections for the current page.

Reactified section pages won't have any sections. The rest of the settings pages will get the default/own section and those added via the woocommerce_get_sections_checkout filter.

Method of the class: WC_Settings_Payment_Gateways{}

No Hooks.

Returns

Array. The sections for this settings page.

Usage

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

WC_Settings_Payment_Gateways::get_sections() code WC 10.3.3

public function get_sections() {
	global $current_tab, $current_section;

	// We only want to prevent sections on the main WooCommerce Payments settings page and Reactified sections.
	if ( self::TAB_NAME === $current_tab && $this->should_render_react_section( $current_section ) ) {
		return array();
	}

	return parent::get_sections();
}