gpb_rescheduled

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Log when bookings are rescheduled
  5. Since

Description

Action fired after a booking has been successfully rescheduled.

Usage

Action applied globally

add_action( 'gpb_rescheduled', 'my_custom_function' );

Parameters

$booking GP_BookingsBooking

The booking object.

$new_start_datetime string

The new start datetime that was set.

$new_end_datetime string

The new end datetime that was set.

Examples

Log when bookings are rescheduled

add_action('gpb_rescheduled', function($booking, $new_start, $new_end) {
    error_log("Booking {$booking->get_id()} rescheduled to {$new_start} - {$new_end}");
}, 10, 3);

Since

  • 1.0-alpha-1.0 Hook added.