Building a Group Leader Dashboard Without ProPanel
Give LearnDash group leaders a front-end page listing their groups, members and each member's course progress, built with core group functions and a capability-checked shortcode, no ProPanel required.

Group leaders in LearnDash 4.18.0.1 can see their learners in the WordPress admin, and ProPanel adds charts and reports on top. Plenty of sites have neither the budget for ProPanel nor the wish to send managers into wp-admin. A front-end page that lists a leader's groups, the members of each and how far each member has got covers what most managers actually ask for. This tutorial builds it with core functions only, with the permission checks LearnDash itself uses, and adds a CSV download at the end.
The functions involved
learndash_is_group_leader_user( $user_id )tells you whether the current user has the group leader role or capability.learndash_get_administrators_group_ids( $user_id )returns the groups the user leads. It reads thelearndash_group_leaders_{group_id}user meta, validates the groups, and adds child groups when hierarchical groups are enabled. For an administrator it returns every group, which is convenient for testing.learndash_get_groups_user_ids( $group_id )returns the member IDs of a group as an array.learndash_group_enrolled_courses( $group_id )returns the course IDs attached to the group.learndash_get_user_group_progress( $group_id, $user_id )returns an array withpercentage,completed,in-progress,not-startedandtotalfor the group's courses, cached per group and user.learndash_course_progress()in array mode gives per-course percentage, completed and total steps.
The way these relationships are stored is explained in the group leader role and dashboard guide.
The shortcode
<?php
/**
* [wwc_leader_dashboard] - groups, members and progress for the current group leader.
*/
function wwc_leader_dashboard_shortcode() {
$leader_id = get_current_user_id();
if ( ! $leader_id || ! ( learndash_is_group_leader_user( $leader_id ) || learndash_is_admin_user( $leader_id ) ) ) {
return '<p>' . esc_html__( 'This page is for group leaders.', 'wwc' ) . '</p>';
}
$group_ids = learndash_get_administrators_group_ids( $leader_id );
if ( empty( $group_ids ) ) {
return '<p>' . esc_html__( 'You do not lead any groups yet.', 'wwc' ) . '</p>';
}
$html = '<div class="wwc-leader learndash-wrapper">';
foreach ( $group_ids as $group_id ) {
$members = learndash_get_groups_user_ids( $group_id );
$courses = learndash_group_enrolled_courses( $group_id );
$html .= '<section class="wwc-leader__group">';
$html .= sprintf(
'<h2>%1$s <small>%2$s</small></h2>',
esc_html( get_the_title( $group_id ) ),
esc_html( sprintf( _n( '%d member', '%d members', count( $members ), 'wwc' ), count( $members ) ) )
);
if ( empty( $members ) ) {
$html .= '<p>' . esc_html__( 'No members yet.', 'wwc' ) . '</p></section>';
continue;
}
$html .= '<table class="wwc-leader__table"><thead><tr><th>' . esc_html__( 'Learner', 'wwc' ) . '</th>';
foreach ( $courses as $course_id ) {
$html .= '<th>' . esc_html( get_the_title( $course_id ) ) . '</th>';
}
$html .= '<th>' . esc_html__( 'Overall', 'wwc' ) . '</th></tr></thead><tbody>';
foreach ( $members as $member_id ) {
$user = get_userdata( $member_id );
if ( ! $user ) {
continue;
}
$html .= '<tr><td>' . esc_html( $user->display_name ) . '</td>';
foreach ( $courses as $course_id ) {
$p = learndash_course_progress(
array(
'user_id' => $member_id,
'course_id' => $course_id,
'array' => true,
)
);
$html .= '<td>' . absint( $p['percentage'] ?? 0 ) . '%</td>';
}
$overall = learndash_get_user_group_progress( $group_id, $member_id );
$html .= '<td>' . absint( $overall['percentage'] ?? 0 ) . '%</td></tr>';
}
$html .= '</tbody></table></section>';
}
return $html . '</div>';
}
add_shortcode( 'wwc_leader_dashboard', 'wwc_leader_dashboard_shortcode' );
The table has one column per group course and a final overall column from the group progress function, which is the share of the group's courses the learner has completed. Overall and per-course figures measure different things, so label them clearly; a learner at 80% in every course is 0% overall until they finish one.
Permissions: why the checks matter
The shortcode only ever shows groups returned by learndash_get_administrators_group_ids() for the current user, so a leader cannot see another leader's groups by editing a URL. Never accept a group ID from the query string without checking it against that list. If you add a "view one learner" link, check learndash_is_group_leader_of_user( $leader_id, $user_id ) before showing anything, which is the same test the LearnDash REST progress controllers use. Our guide to role helper functions lists the related checks.
Adding a CSV download
Managers often want the table in a spreadsheet. Handle the download on template_redirect, before any output, with a nonce:
<?php
add_action(
'template_redirect',
function () {
if ( empty( $_GET['wwc_leader_csv'] ) ) {
return;
}
$group_id = absint( $_GET['wwc_leader_csv'] );
$leader_id = get_current_user_id();
if ( ! wp_verify_nonce( sanitize_key( $_GET['_wpnonce'] ?? '' ), 'wwc_leader_csv_' . $group_id ) ) {
wp_die( esc_html__( 'Link expired.', 'wwc' ) );
}
if ( ! in_array( $group_id, array_map( 'absint', learndash_get_administrators_group_ids( $leader_id ) ), true ) ) {
wp_die( esc_html__( 'Not your group.', 'wwc' ), 403 );
}
header( 'Content-Type: text/csv; charset=utf-8' );
header( 'Content-Disposition: attachment; filename=group-' . $group_id . '-progress.csv' );
$out = fopen( 'php://output', 'w' );
$courses = learndash_group_enrolled_courses( $group_id );
fputcsv( $out, array_merge( array( 'Learner', 'Email' ), array_map( 'get_the_title', $courses ) ) );
foreach ( learndash_get_groups_user_ids( $group_id ) as $member_id ) {
$user = get_userdata( $member_id );
if ( ! $user ) {
continue;
}
$row = array( $user->display_name, $user->user_email );
foreach ( $courses as $course_id ) {
$p = learndash_course_progress( array( 'user_id' => $member_id, 'course_id' => $course_id, 'array' => true ) );
$row[] = absint( $p['percentage'] ?? 0 );
}
fputcsv( $out, $row );
}
fclose( $out );
exit;
}
);
In the dashboard, print the link per group with wp_nonce_url( add_query_arg( 'wwc_leader_csv', $group_id ), 'wwc_leader_csv_' . $group_id ), escaped with esc_url().
Performance on large groups
Each cell is one progress lookup, so a group of 300 learners and 6 courses is 1,800 lookups on one page view. Progress reads come from user meta, which WordPress loads per user in one query, so this is usually acceptable up to a few hundred members. Beyond that, paginate members with array_slice() and a page parameter, or cache the rendered table per group in a transient for ten minutes and clear it from the learndash_course_completed hook. Keep the CSV uncached, since managers expect it to be current.
Where to put the page
Create a page with the shortcode, restrict it to logged-in users, exclude it from page caching, and add it to a menu that only leaders see. If leaders also use wp-admin, the capabilities they need are covered in letting group leaders manage users and courses. When requirements grow to charts, date filters and quiz breakdowns, compare the effort with ProPanel using ProPanel versus custom reports.
Adding a per-learner detail view
Managers usually click a name next. A detail view can reuse the same functions for one learner: list each group course with learndash_course_progress(), add the completion date from learndash_user_get_course_completed_date( $user_id, $course_id ), and show recent quiz scores from the learner's _sfwd-quizzes user meta. Link to it with a learner query parameter and, before rendering anything, confirm with learndash_is_group_leader_of_user() that the current leader manages that learner. Keep the view read-only; changes such as resetting progress or removing someone from a group belong in the admin, where LearnDash's own capability checks apply.
Showing who has not started
The most useful single number for a manager is often "who has not begun". The group progress array already carries a not-started count per learner across the group's courses. Add a filter above the table, a simple select with All, Not started and Completed, and hide rows by comparing each learner's not-started value with the group's course total. This is a cheap addition because the data is already loaded for the overall column.
Testing
Create two groups with different leaders and overlapping courses. Log in as each leader and confirm only their group appears; try the CSV link with the other group's ID and confirm the 403. Add a learner mid-course and confirm the per-course and overall figures match the learner's own profile. As an administrator, confirm every group appears, which is expected behaviour of the groups function.
When to get help
This dashboard is an afternoon's work. Manager portals with date ranges, reminder emails, certificate downloads for the whole group or integration with HR systems are larger projects; our LearnDash services team builds them regularly, and a LearnDash developer can also add charts without ProPanel.
Frequently asked questions
Can group leaders see progress without ProPanel?
Yes. Core LearnDash gives leaders admin screens for their groups, and the functions above let you show the same data on a front-end page.
Why does an administrator see every group?
learndash_get_administrators_group_ids() returns all groups for administrators unless its second argument is true. Leaders see only the groups they lead.
Do child groups appear for a parent group's leader?
Yes, when hierarchical groups are enabled in the LearnDash group settings; the function adds child groups to the leader's list.
What does the overall percentage mean?
It is the share of the group's courses the learner has completed, from learndash_get_user_group_progress(), not an average of per-course step progress.
Add worldwincoder.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.
