Student
For loop type learndash_student
, here are the query parameters and fields.
Query parameters
activities_course_id
- Course ID or "current" to show activities
Type: stringenrolled_any
- Enrolled any
Type: boolean - Default: trueexclude
- Exclude users by ID or name
Type: string, arraygroup
- Group ID or "current" that student belongs to
Type: stringgroup_leader
- Group leader ID or "current" for current student
Type: stringid
- User by ID
Type: string, arrayinclude
- Include users by ID or name
Type: string, arrayname
- User by name/slug
Type: string, arraynot_role
- Exclude user role(s)
Type: string, arrayorder
- Order: asc (ascending) or desc (descending)
Type: string - Default: ascorderby
- Order by field
Type: string, array - Default: display_namepaged
- Items per page
Type: number - Default: 10role
- User role(s)
Type: string, arrayshow_activities_limit
- Limit number of student activities to show
Type: numberstudent
- Student ID(s) or "current" for the current student
Type: string, array
Fields
activity
- Student activity looparchive_url
- Post archive URLavatar
- Avatar imageavatar_url
- Avatar URLcertificate_count
- Student certificates countcourse_completed_count
- Student completed courses countcourse_points
- Student all courses pointscourses_count
- Student all courses countedit_url
- Edit URLemail
- Emailenrolled_courses
- Student all enrolled coursesfull_name
- Full nameid
- IDlast_active_course
- Student last active course looplocale
- User locale from the Language setting in profile edit screenname
- Namepost_count
- Post countquiz_attempts
- Student quiz attempts loopquizzes
- Student quizzes loopregistration_date
- Registration dateroles
- User role(s)student_group_leaders
- Student group leaders loopstudent_groups
- Student groups loopurl
- URL