woocommerce_cart_total

woocommerce_cart_total

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_total') is found 1 times:

  • /includes/class-wc-cart.php line 297
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    * @return float|string
     */
    public function get_total( $context = 'view' ) {
        $total = apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'total' ) );
        return 'view' === $context ? apply_filters( 'woocommerce_cart_total', wc_price( $total ) ) : $total;
    }
     
    /**
     * Get total tax amount.
     *
     * @since 3.2.0