WordPress at Your Fingertips
function is not described

WC_Payment_Gateways::payment_gateways() public WC 1.0

Get gateways.

{} It's a method of the class: WC_Payment_Gateways{}

No Hooks.

Return

Array.

Usage

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

Code of WC_Payment_Gateways::payment_gateways() WC 5.9.0

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