WC_Settings_Payment_Gateways::get_settings( string $current_section = '' )

Get settings array.


Description Description


Parameters Parameters

$current_section

(Optional) Section being shown.

Default value: ''


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/admin/settings/class-wc-settings-payment-gateways.php

	public function get_settings( $current_section = '' ) {
		$settings = array();

		if ( '' === $current_section ) {
			$settings = apply_filters(
				'woocommerce_payment_gateways_settings',
				array(
					array(
						'title' => __( 'Payment methods', 'woocommerce' ),
						'desc'  => __( 'Installed payment methods are listed below and can be sorted to control their display order on the frontend.', 'woocommerce' ),
						'type'  => 'title',
						'id'    => 'payment_gateways_options',
					),
					array(
						'type' => 'payment_gateways',
					),
					array(
						'type' => 'sectionend',
						'id'   => 'payment_gateways_options',
					),
				)
			);
		}

		return apply_filters( 'woocommerce_get_settings_' . $this->id, $settings, $current_section );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.