Browse: Home / Hooks /

course_export_data

apply_filters( 'course_export_data',  void|array|mixed $content )

Filters the content will print onto the exported CSV


Description #


Parameters #

$content

(void|array|mixed) CSV content.


Source #

File: includes/class-ld-lms.php


Examples #

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

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

		// Always return $content.
		return $content;
	}
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.