Browse: Home / Functions /

learndash_reports_get_activity

learndash_reports_get_activity( array $query_args = array(),  int $current_user_id )

Queries the user activity for the report.


Description #

This function will query the new learndash_course_user_activity table for user/course Activity.


Parameters #

$query_args

(array) (Optional) The query arguments to get user activity.

Default value: array()

$current_user_id

(int) (Optional) The user to run the query as. Defaults to the current user. Default 0.


Return #

(array) Returns user activity query results.


Source #

File: includes/ld-reports.php


Changelog #

Changelog
Version Description
2.3.0 Introduced.