learndash_user_activity_query_fields

apply_filters( 'learndash_user_activity_query_fields',  string $sql_query_fields,  array $query_args )

Filters user activity query fields.


Description #


Parameters #

$sql_query_fields

(string) User activity query fields with valid sql syntax.

$query_args

(array) An array of user query arguments.


Source #

File: includes/ld-reports.php


Examples #

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

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