English (United Kingdom)

apply_filters( 'vikappointments_build_service_search_data', bool $status, object $serviceJModelVAP $model )

Fires before returning the service details.


Description

Trigger hook to manipulate at runtime the response of the query used to load the service to display, under the Service Details page.

Third party plugins can alter the details of the loaded service.


Parameters

$status

(bool)  True on success, false otherwise.

$service

(object)  The object holding the service details.

$model

(JModelVAP)  The model responsible of loading the data needed to the Service Search page.


Example

/**
 * Trigger hook to manipulate the query response at runtime. Third party
 * plugins can include further details into the service object.
 *
 * @param  boolean    $status   True on success, false otherwise.
 * @param  object     $service  An object holding the service details.
 * @param  JModelVAP  $model    The view model.
 */
add_filter('vikappointments_build_service_search_data', function($status, $service, $model)
{
    /**
     * @todo do stuff here
     */

    return true;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-07-30
Helpful?
See Also:
This site uses cookies. By continuing to browse you accept their use. Further information