Search Documentation

WP Travel Developer Documentation

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

Filter: wptravel_skip_add_to_cart

Hook to skip add to cart while booking trip.

Active Since v4.6.3


File:  inc/class-ajax.php
Method/Function:  add_to_cart

$skip_cart [default parameter with default value false]


function wptravel_customized_skip_to_cart( $skip_cart ) {
   return true;
add_filter( 'wptravel_skip_add_to_cart', 'wptravel_customized_skip_to_cart' );
Was this article helpful to you? Yes No

How can we help?