WC_Settings_Payment_Gateways::get_settings_for_default_section()protectedWC 1.0

Get settings array.

Method of the class: WC_Settings_Payment_Gateways{}

Return

Array.

Usage

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

WC_Settings_Payment_Gateways::get_settings_for_default_section() code WC 8.9.0

protected function get_settings_for_default_section() {
	$settings =
		array(
			array(
				'type' => 'title', // this is needed as <table> tag is generated by this element, even if it has no other content.
			),
			array( 'type' => 'payment_gateways_banner' ), // React mount point for embedded banner slotfill.
			array(
				'type' => 'payment_gateways',
			),
			array(
				'type' => 'sectionend',
				'id'   => 'payment_gateways_options',
			),
		);

	return apply_filters( 'woocommerce_payment_gateways_settings', $settings );
}