Il tuo carrello è vuoto!
After Fetch Data
apply_filters( 'vikappointments_after_fetch_calendar_data', bool $status, object $data, array $options )
Fires after fetching the calendar data in the front-end.
Description
Trigger hook after fetching the data needed to display a calendar in the front-end.
Useful, in example, to include additional information about the calendar or to implement a new layout type.
Parameters
- $status
-
(bool) True on success, false otherwise.
- $data
-
(object) The object holding the calendar data.
- $options
-
(array) An array of search options.
id_ser
- the ID of the selected service;id_emp
- the ID of the selected employee;layout
- the type of layout to use (weekly or monthly).
Example
/**
* Trigger hook after fetching the data needed to display a calendar.
* Useful, in example, to include additional information about the calendar
* or to implement a new layout type.
*
* @param boolean $status True on success, false otherwise.
* @param object $data The object holding the calendar data.
* @param array $options An array of search options.
*/
add_filter('vikappointments_after_fetch_calendar_data', function($status, $data, $options)
{
/**
* @todo do stuff here
*/
return $status;
}, 10, 3);
Changelog
Version | Description |
---|---|
1.2 | Introduced. |
Ultimo aggiornamento: 2021-10-04
Utile?