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 #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );