apply_filters( 'quiz_export_data', array $content, array $users, int $group_id )
Filters quiz data that will print to CSV.
Description #
Parameters #
- $content
-
(array) CSV content.
- $users
-
(array) An array of users list.
- $group_id
-
(int) Group ID.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for quiz_export_data filter.
*/
add_filter(
'quiz_export_data',
function( $content, $users, $groudp_id ) {
// May add any custom logic using $content, $users, $groudp_id.
// Always return $content.
return $content;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |