Skip to main content

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

  • enrolled_any - Enrolled any
    Type: boolean - Default: true

  • exclude - Exclude users by ID or name
    Type: string, array

  • 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)
    Type: string - Default: asc

  • orderby - Order by field
    Type: string, array - Default: display_name

  • paged - Items per page
    Type: number - Default: 10

  • role - User role(s)
    Type: string, array

  • show_activities_limit - Limit number of student activities to show
    Type: number

  • student - Student ID(s) or "current" for the current student
    Type: string, array

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