Browse: Home / Functions /


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 #


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

Default value: array()


(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 #

Version Description
2.3.0 Introduced.