learndash_reports_get_activity( array $query_args = array(), int $current_user_id )
Queries the user activity for the report.
Description Description
This function will query the new learndash_course_user_activity table for user/course Activity.
Parameters Parameters
- $query_args
-
(Optional) The query arguments to get user activity.
Default value: array()
- $current_user_id
-
(Optional) The user to run the query as. Defaults to the current user. Default 0.
Return Return
(array) Returns user activity query results.
Source Source
File: includes/ld-reports.php
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |