Your cart is empty!
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?