Your cart is empty!
Build Data
apply_filters_ref_array( 'vikappointments_build_subscription_orders_data', bool $status, array &$orders, JModelVAP $model )
Fires before returning the array of subscription orders.
Description
Trigger hook to manipulate at runtime the response of the query used to load the items to display, under the Subscriptions History page.
Third party plugins can alter the resulting list of orders.
Parameters
- $status
-
(bool) True on success, false otherwise.
- &$orders
-
(array) An array of orders.
- $model
-
(JModelVAP) The model responsible of loading the data needed to the Subscriptions History page.
Example
/**
* Trigger hook to manipulate the query response at runtime. Third party
* plugins can alter the resulting list of orders.
*
* @param boolean $status True on success, false otherwise.
* @param array &$orders An array of orders
* @param JModelVAP $model The view model.
*/
add_filter('vikappointments_build_subscription_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?