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 activities

    Type: string

  • enrolled_any - Enrolled any

    Default: true
    Type: boolean

  • exclude - Exclude users by ID or name

    Type: string, array

  • fields -

  • group - Group ID or "current" that student belongs to

    Type: string

  • group_leader - Group leader ID or "current" for current student

    Type: string

  • id - User by ID

    Type: string, array

  • include - Include users by ID or name

    Type: string, array

  • name - User by name/slug

    Type: 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 field

    Default: display_name
    Type: string, array

  • paged - Items per page

    Default: 10
    Type: number

  • role - User role(s)

    Type: string, array

  • show_activities_limit - Limit number of student activities to show

    Type: 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