learndash_report_column_item

apply_filters( 'learndash_report_column_item',  int|string $column_value,  string $column_key,  object $report_item,  WP_User $report_user,  string $data_slug )

Filters report column data.


Description #


Parameters #

$column_value

(int|string) Report column value.

$column_key

(string) Column key.

$report_item

(object) Report Item.

$report_user

(WP_User) WP_User object.

$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 #

 <?php
/**
 * Example usage for learndash_report_column_item filter.
 */
add_filter(
	'learndash_report_column_item',
	function( $column_value, $column_key, $report_item, $report_user, $data_slug ) {
		// May add any custom logic using $column_value, $column_key, $report_item, $report_user, $data_slug.

		// Always return $column_value.
		return $column_value;
	},
	10,
	5
);
 

Changelog #

Changelog
Version Description
2.4.7 Introduced.