woocommerce_cart_total_discount

woocommerce_cart_total_discount

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_total_discount') is found 1 times:

  • /includes/class-wc-cart.php line 2143
    2139
    2140
    2141
    2142
    2143
    2144
    2145
    2146
    2147
    2148
    2149
    *
     * @return mixed formatted price or false if there are none
     */
    public function get_total_discount() {
        return apply_filters( 'woocommerce_cart_total_discount', $this->get_discount_total() ? wc_price( $this->get_discount_total() ) : false, $this );
    }
     
    /**
     * Reset cart totals to the defaults. Useful before running calculations.
     */
    private function reset_totals() {