Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Action Hooks
  5. Action :wp_travel_update_trip_data

Action :wp_travel_update_trip_data

Fires after updating minimum trip price and before saving trip data.

Active Since:  v4.0.4

Source

File: /core/helpers/trips.php
Used by: /core/helpers/trips.php

Parameters
$trip_data, $trip_id

Example:

function prefix_wp_travel_update_trip_data( $trip_data, $trip_id ) {
    error_log(‘I am called here before saving trip data’);
}
add_action( 'wp_travel_update_trip_data', 'prefix_wp_travel_update_trip_data'  );
Was this article helpful to you? Yes No

How can we help?