WC_Payment_Gateways::payment_gateways()publicWC 1.0

Get gateways.

Method of the class: WC_Payment_Gateways{}

No Hooks.

Return

Array.

Usage

$WC_Payment_Gateways = new WC_Payment_Gateways();
$WC_Payment_Gateways->payment_gateways();

WC_Payment_Gateways::payment_gateways() code WC 9.0.1

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;
}