WC_Payment_Gateways::payment_gateways()publicWC 1.0

Get gateways.

Метод класса: WC_Payment_Gateways{}

Хуков нет.

Возвращает

Массив.

Использование

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

Код WC_Payment_Gateways::payment_gateways() WC 7.3.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;
}