Italian (Italy)
Knowledge Base  >  Vik Appointments  >  Hook  >  Export  >  Default Drivers  >  CSV  >  Before List Query

apply_filters_ref_array( 'vikappointments_before_list_query_export_csv', bool $status, mixed &$query, mixed $options )

Fires while building the query used to fetch the appointments to export.


Description

Trigger hook to allow the plugins to manipulate 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.

&$query

(mixed)  Either a query builder object or a string.

$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 event to allow the plugins to manipulate the query used to retrieve
 * a standard list of records.
 *
 * @param  boolean  $status   True on success, false on failure.
 * @param  mixed    &$query   The query string or a query builder object.
 * @param  mixed    $options  A configuration registry.
 */
add_filter('vikappointments_before_list_query_export_csv', function($status, &$query, $options)
{
    /**
     * @todo it is possible to manipulate here the query
     */

    return $status;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Ultimo aggiornamento: 2021-08-06
Utile?
Potrebbe interessarti:

Questo sito web utilizza i cookie

Questo sito web utilizza cookie e tecnologie simili. Alcune di queste tecnologie sono necessarie per il corretto funzionamento del sito web (essenziali). Altre tecnologie sono utilizzate per valutare il comportamento degli utenti (analisi), per integrare media esterni o per scopi pubblicitari. Se l'utente accetta, queste tecnologie vengono attivate. I dettagli sono riportati nella Privacy Policy. Da questa stessa pagina è inoltre possibile aggiornare/revocare il consenso. Se non si fornisce il consenso, verranno attivati solo i cookie con funzioni essenziali.

Sul nostro sito web utilizziamo tecnologie provenienti dagli Stati Uniti. Pertanto, se acconsentite, acconsentite anche al trasferimento dei vostri dati negli Stati Uniti. Desideriamo sottolineare che gli Stati Uniti non hanno un livello di protezione dei dati paragonabile a quello dell'Unione Europea e che qualsiasi azienda statunitense può essere obbligata dalle autorità statali a consegnare i vostri dati senza che voi abbiate alcuno strumento efficace di protezione legale contro questo.