User Activity
For loop type learndash_user_activity, here are the query parameters and fields.
Query parameters
activity_event- Whether to filter activities by "started" or "completed" date - values "started" and "completed"
Type: string - Default: startedactivity_status- Whether to filter activities by status - values "open", "started" and "completed"
Type: stringcourse_id- Course ID or "current" of the activity
Type: stringdate_precision- When set to "full" takes into account hours,minutes and seconds when calculating date - values "full" and "day"
Type: string - Default: dayfrom_date- Activities on and after a specific date. Accepts time format strings, eg. "Thursday, September 10, 2020 17:29:14", "2020-12-11" etc.
Type: stringlimit- Limit number of activities
Type: number - Default: 25on_date- Activities on a specific date. Accepts time format strings, eg. "Thursday, September 10, 2020 17:29:14", "2020-12-11" etc. Takes precedence over other date query arguments
Type: stringorder- Order - values: asc/desc
Type: string - Default: descorderby- Order by - values: activity_id, user_id, post_id, course_id, activity_type, activity_status, activity_started, activity_completed, activity_updated
Type: stringto_date- Activities to and on a specific date. Accepts time format strings, eg. "Thursday, September 10, 2020 17:29:14", "2020-12-11" etc.
Type: stringuser_id- User ID (current by default)
Type: number
Fields
activity_id- Activity IDactivity_type- Activity type: course, lesson, topic, quizcompleted- Activity completed timestampcourse_id- Activity Course IDduration- Duration in seconds (quiz only)duration_in_minutes- Duration in minutes (quiz only)id- Post IDpercentage- Progress percentage (0~100)post- Post loopstarted- Activity started timestampstatus- Status - One of: open, started, completedsteps_completed- Steps completedsteps_total- Total stepstitle- Post titletype- Post loop typeurl- Post URL