apply_filters( 'learndash_csv_download_headers', array $http_headers, array $transient_data, string $data_slug )
Filters http headers for CSV download request.
Description #
Parameters #
- $http_headers
-
(array) An array of http headers.
- $transient_data
-
(array) An array of transient data for csv download.
- $data_slug
-
(string) The slug of the data to be downloaded.
Source #
File: includes/admin/class-learndash-admin-settings-data-reports.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_csv_download_headers filter. */ add_filter( 'learndash_csv_download_headers', function( $http_headers, $transient_data, $data_slug ) { // May add any custom logic using $http_headers, $transient_data, $data_slug. // Always return $http_headers. return $http_headers; }, 10, 3 );
Changelog #
Version | Description |
---|---|
2.4.7 | Introduced. |