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_filter_cart_item_id

Filter :wp_travel_filter_cart_item_id

Filter for cart item ID.

Active Since v1.5.8

Source

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

Parameters
md5( $cart_item_id ), $trip_id, $price_key, $start_date

Example:

function prefix_wp_travel_filter_cart_item_id( $cart_item_id ) {
    $cart_item_id = 123;
    return $cart_item_id;
}
add_filter( 'wp_travel_filter_cart_item_id', 'prefix_wp_travel_filter_cart_item_id' );
Was this article helpful to you? Yes No

How can we help?