apply_filters( 'learndash_user_activity_query_joins', string $sql_query_where, array $query_args )
Filters the joins for the user activity query.
Description #
Parameters #
- $sql_query_where
-
(string) The
wherepart of the SQL query with valid SQL syntax. - $query_args
-
(array) An array of user query arguments.
Source #
File: includes/ld-reports.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_user_activity_query_joins filter.
*/
add_filter(
'learndash_user_activity_query_joins',
function( $sql_query_joins, $query_args ) {
// May add any custom logic using $sql_query_joins, $query_args.
// Always return $sql_query_joins.
return $sql_query_joins;
},
10,
2
);