Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Booking
  5. Filter :wp_travel_booking_post_id_to_update

Filter :wp_travel_booking_post_id_to_update

Booking ID to update data.

Source

File: /inc/booking-functions.php
Used by: /inc/booking-functions.php, /inc/trip-enquiries.php

Parameters
$booking_id, $key, $field[‘name’]

Example:

function prefix_wp_travel_booking_post_id_to_update( $booking_id, $key, $field_name ) {
    $booking_id = ‘BOOKING ID’;
    return $booking_id;
}
add_filter( 'wp_travel_booking_post_id_to_update', 'prefix_wp_travel_booking_post_id_to_update', 12, 3 );
Was this article helpful to you? Yes No

How can we help?