WC_Settings_Payment_Gateways::get_settings_for_default_section()protectedWC 1.0

Get settings array.

Метод класса: WC_Settings_Payment_Gateways{}

Хуки из метода

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_settings_for_default_section();

Код WC_Settings_Payment_Gateways::get_settings_for_default_section() WC 7.1.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 );
}