Your cart is empty!
Initialization
apply_filters_ref_array( 'vikappointments_init_save_order', bool $status, VAPCart &$cart )
Fires at the beginning of the saving process.
Description
Trigger hook to manipulate the cart instance while saving one or more appointments. Here's possible to manipulate the cart instance.
This is the first hook that triggers after clicking the "Confirm Reservation" button.
Parameters
- $status
-
(bool) True on success, false otherwise.
- &$cart
-
(VAPCart) The cart instance, passed by reference.
Example
/**
* Trigger hook to manipulate the cart instance.
*
* @param boolean $status True on success, false otherwise.
* @param VAPCart &$cart The cart instance.
*/
add_filter('vikappointments_init_save_order', function($status, &$cart)
{
/**
* @todo do stuff here
*/
return $status;
}, 10, 2);
Changelog
Version | Description |
---|---|
1.0 | Introduced. |
Last Update: 2021-08-05
Helpful?