Your cart is empty!
Build Data
apply_filters_ref_array( 'vikappointments_build_all_orders_data', bool $status, array &$orders, JModelVAP $model )
Fires before returning the array of appointments.
Description
Trigger hook to manipulate at runtime the response of the query used to load the appointments to display, under the All Orders page.
Third party plugins can alter the resulting list of appointments.
Parameters
- $status
-
(bool) True on success, false otherwise.
- &$orders
-
(array) An array of appointments.
- $model
-
(JModelVAP) The model responsible of loading the data needed to the All Orders page.
Example
/**
* Trigger hook to manipulate the query response at runtime. Third party
* plugins can alter the resulting list of appointments.
*
* @param boolean $status True on success, false otherwise.
* @param array &$orders An array of appointments
* @param JModelVAP $model The view model.
*/
add_filter('vikappointments_build_all_orders_data', function($status, &$orders, $model)
{
/**
* @todo do stuff here
*/
return true;
}, 10, 3);
Changelog
Version | Description |
---|---|
1.2 | Introduced. |
Last Update: 2021-07-30
Helpful?