Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Cart Page
  5. Filter :wp_travel_cart_sub_total

Filter :wp_travel_cart_sub_total

Cart total price.

Source

File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php

Parameters
$cart_total

Example:

function prefix_wp_travel_trip_extras_custom_sale_prices( $cart_total ) {
    return ( $cart_total + 100 );
}
add_filter( 'wp_travel_cart_sub_total', 'prefix_wp_travel_cart_sub_total' );
Was this article helpful to you? Yes No

How can we help?