commit
ef52345f1b
|
@ -686,7 +686,7 @@ function wc_get_tax_class_by_tax_id( $tax_id ) {
|
||||||
*/
|
*/
|
||||||
function wc_get_payment_gateway_by_order( $order ) {
|
function wc_get_payment_gateway_by_order( $order ) {
|
||||||
if ( WC()->payment_gateways() ) {
|
if ( WC()->payment_gateways() ) {
|
||||||
$payment_gateways = WC()->payment_gateways->payment_gateways();
|
$payment_gateways = WC()->payment_gateways()->payment_gateways();
|
||||||
} else {
|
} else {
|
||||||
$payment_gateways = array();
|
$payment_gateways = array();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue