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

apply_filters( 'vikappointments_after_build_rows_csv', array $rows, array $records, mixed $handler )

Fires after completing the body of the CSV table.


Description

Trigger hook to allow the plugins to append additional rows at the end of the CSV file.


Parameters

$rows

(array)  The rows to include. Must be an array of arrays.

$records

(array)  An array of database records.

$handler

(VAPOrderExportDriverCsv)  The instance used to export the records.


Example

/**
 * Trigger event to allow the plugins to append additional rows
 * within the CSV file.
 *
 * @param  array  $rows     The rows to include. Must be an array of arrays.
 * @param  array  $records  An array of database records.
 * @param  mixed  $handler  The current handler instance.
 */
add_filter('vikappointments_after_build_rows_csv', function($rows, $records, $handler)
{
    /**
     * @todo it is possible to append some new rows here
     */

    return $rows;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-08-06
Helpful?
See Also:

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.