Student loop
For loop type learndash_student
, here are the available query arguments and fields.
Query arguments
-
activities_course_id
- Course ID or "current" to show activitiesType: string
-
enrolled_any
- Enrolled anyDefault:
true
Type: boolean -
exclude
- Exclude users by ID or nameType: string, array
-
fields
- -
group
- Group ID or "current" that student belongs toType: string
-
group_leader
- Group leader ID or "current" for current studentType: string
-
id
- User by IDType: string, array
-
include
- Include users by ID or nameType: string, array
-
name
- User by name/slugType: string, array
-
not_role
- Exclude user role(s)Type: string, array
-
order
- Order: asc (ascending) or desc (descending)Default:
asc
Type: string -
orderby
- Order by fieldDefault:
display_name
Type: string, array -
paged
- Items per pageDefault:
10
Type: number -
role
- User role(s)Type: string, array
-
show_activities_limit
- Limit number of student activities to showType: number
Fields
-
activity
- Student activity loop
-
archive_url
- Post archive URL
-
avatar
- Avatar image
-
avatar_url
- Avatar URL
-
certificate_count
- Student certificates count
-
course_completed_count
- Student completed courses count
-
course_points
- Student all courses points
-
courses_count
- Student all courses count
-
edit_url
- Edit URL
-
email
- Email
-
enrolled_courses
- Student all enrolled courses
-
full_name
- Full name
-
id
- ID
-
last_active_course
- Student last active course loop
-
locale
- User locale from the Language setting in profile edit screen
-
name
- Name
-
post_count
- Post count
-
quiz_attempts
- Student quiz attempts loop
-
quizzes
- Student quizzes loop
-
registration_date
- Registration date
-
roles
- User role(s)
-
student_group_leaders
- Student group leaders loop
-
student_groups
- Student groups loop
-
url
- URL