WC_Payment_Gateways::payment_gateways()
Get gateways.
Description Description
Return Return
(array)
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;
}