WC_Payment_Gateways::payment_gateways()

Get gateways.


Description Description


Return Return

(array)


Top ↑

Source Source

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

	public function payment_gateways() {
		$_available_gateways = array();

		if ( count( $this->payment_gateways ) > 0 ) {
			foreach ( $this->payment_gateways as $gateway ) {
				$_available_gateways[ $gateway->id ] = $gateway;
			}
		}

		return $_available_gateways;
	}


Top ↑

User Contributed Notes User Contributed Notes

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