learndash_user_activity_query_str

apply_filters( 'learndash_user_activity_query_str',  string $sql_str,  array $query_args )

Filters the user activity SQL query string.


Description #


Parameters #

$sql_str

(string) User activity SQL query string.

$query_args

(array) An array of user query arguments.


Source #

File: includes/ld-reports.php


Examples #

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

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