Browse: Home / Hooks /

learndash_csv_data

apply_filters( 'learndash_csv_data',  array $csv_data,  string $data_slug )

Filters CSV data.


Description #


Parameters #

$csv_data

(array) An array of CSV data.

$data_slug

(string) The slug of the data in the CSV.


Source #

File: includes/admin/classes-data-reports-actions/class-learndash-admin-data-reports-user-courses.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_csv_data filter.
 */
add_filter(
	'learndash_csv_data',
	function( $csv_data, $data_slug ) {
		// May add any custom logic using $csv_data, $data_slug.

		// Always return $csv_data.
		return $csv_data;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.4.7 Introduced.