English (United Kingdom)
Knowledge Base  >  Vik Appointments  >  Hooks  >  Export  >  Default Drivers  >  CSV  >  After List Query

apply_filters_ref_array( 'vikappointments_after_list_query_export_csv', bool $status, array &$rows, mixed $options )

Fires before returning the array of appointments to export.


Description

Trigger hook to allow the plugins to manipulate the response fetched by the query used to retrieve a standard list of records.

It is possible to use $options->get($key) to access the internal properties of the options argument.


Parameters

$status

(bool)  True on success, false on failure.

&$rows

(array)  An array of results (objects).

$options

(JObject)  A registry of options. This instance holds the values of the settings specified by the export driver, such as the delimiter character.


Example

/**
 * Trigger hook to allow the plugins to manipulate response fetched by
 * the query used to retrieve a standard list of records.
 *
 * @param  boolean  $status   True on success, false on failure.
 * @param  mixed    &$rows    An array of results (objects).
 * @param  mixed    $options  A configuration registry.
 */
add_filter('vikappointments_after_list_query_export_csv', function($status, &$rows, $options)
{
    /**
     * @todo it is possible to manipulate here the export rows
     */

    return $status;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-10-08
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.