helpful/logs/export/csv_name

This filter determines the name of the export file for the logs. By default, logs.csv is used, overwriting the old file each time (less file garbage).

/**
 * @param string $filename File name of the CSV file (with extension).
 * @return string
 */
add_filter('helpful/logs/export/csv_name', function(string $filename) {
    return $filename;
});

Was this post helpful?

Top