eventorganiser_transition_booking_status
(action)
Pro
Triggered when a booking changes status Default statuses are 'new', 'pending', 'confirmed' and 'cancelled'.
Parameters
string
|
$new_status |
The booking's new status
|
string
|
$old_status |
The booking's previous status
|
string
|
$post |
The WP_Post (eo_booking type) booking
|
Example Usage
add_action( 'eventorganiser_transition_booking_status', 'my_callback_function', 10, 3 );
function my_callback_function( $new_status, $old_status, $post ){
//Do something
};