English (United Kingdom)

do_action_ref_array( 'vikrestaurants_init_save_reservation', array &$data )

Fires at the beginning of the saving process of a restaurant reservation.


Description

Trigger hook to manipulate the search information during the booking process of a table.

This is the first hook that triggers after clicking the "Confirm Reservation" button.


Parameters

&$data

(array)  The booking information, passed by reference. Supports all the following attributes.

  • date (string) - the check-in date string, formatted according to the plugin configuration preferences.
  • hourmin (string) - the check-in time string in 24H format.
  • people (int) - the number of selected participants.
  • table (int) - the ID of the selected table, if any.
  • id_payment (int) - the ID of the selected payment method, if any.

Example

/**
 * Trigger event to manipulate the search data array.
 *
 * @param  array  &$data  The data array.
 */
add_action('vikrestaurants_init_save_reservation', function(&$data) {
    /**
     * @todo do stuff here
     */
});

Changelog

Version Description
1.3 Introduced.
Last Update: 2023-12-27
Helpful?

This website uses cookies

This website uses cookies and similar technologies. Some of these technologies are necessary for the proper functioning of the website (Essential). Other technologies are used to evaluate user behavior (Analysis), to integrate external media or for advertising purposes. If you agree, these technologies are activated. For details, please refer to the privacy policy. From this same page you can also update/revoke your consent. If you do not give your consent, only cookies with essential functions will be activated.

We use technologies from the USA on our website. If you give your consent, you therefore consent at the same time to your data being transferred to the USA. We would like to point out that the USA does not have a level of data protection comparable to that of the EU and that any US company can be obliged by state authorities to hand over your data without you having any effective legal protection against this.