diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index b1c0c690883..62ec14f7923 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -686,7 +686,7 @@ function wc_get_tax_class_by_tax_id( $tax_id ) { */ function wc_get_payment_gateway_by_order( $order ) { if ( WC()->payment_gateways() ) { - $payment_gateways = WC()->payment_gateways->payment_gateways(); + $payment_gateways = WC()->payment_gateways()->payment_gateways(); } else { $payment_gateways = array(); }