helpful/logs/export/line

This filter can be used to manipulate the data that will be saved in a CSV for export. These are the individual entries of the export file for the logs.

/**
 * @param array $line The single entry as an array, for the export file.
 * @param object $row The data of the individual entry, from the database.
 * @return array
 */
add_filter('helpful/logs/export/line', function(array $line, object $row) {
    return $line;
}, 10, 2);

Was this post helpful?

Top