eo_confirm_booking
since 1.0
Pro
eo_confirm_booking( $booking_id, $force_confirmation = false )
Updates a booking status to 'confirmed'
Checks for errors (i.e. over booked events, ticket removed from event etc).
These can be ignored by setting $force_confirmation
to true.
Returns true on success, false on error (e.g. invalid booking ID), or WP_Error on failure to confirm booking
(e.g. over booked).
Triggers eventorganiser_booking_confirmed
action if it confirms the booking.
Parameters
int
|
$booking_id |
the Booking ID
|
|
$force_confirmation = false |
|
Return value
\WP_Error|bool
|
True on success, false on error or WP_Error on failure
|
Hooks
Changelog