woocommerce_order_subtotal_to_display

woocommerce_order_subtotal_to_display

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_subtotal_to_display') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2228
    2224
    2225
    2226
    2227
    2228
    2229
    2230
    2231
    2232
    2233
    2234
            $subtotal = $subtotal - (float) $this->get_total_discount();
            $subtotal = wc_price( $subtotal, array( 'currency' => $this->get_currency() ) );
        }
     
        return apply_filters( 'woocommerce_order_subtotal_to_display', $subtotal, $compound, $this );
    }
     
    /**
     * Gets shipping (formatted).
     *
     * @param string $tax_display Excl or incl tax display mode.