Development

How to Add a Custom Tab to the Student Dashboard

Add your own page to the Tutor LMS 4 student dashboard: register it with tutor_student_dashboard_nav, create the template, flush permalinks and restrict it by capability.

Checked against the plugin source: Tutor LMS 4.1.3, Tutor LMS Pro 4.1.3

How to Add a Custom Tab to the Student Dashboard

Schools often want an extra page in the student dashboard: downloads, a timetable, a billing summary or links to a community. In Tutor LMS 4.1.3 a dashboard page is a menu item plus a template. Here is how to add one.

How dashboard pages work

The student menu comes from tutor_utils()->default_menus(), which ends with the tutor_student_dashboard_nav filter. Each key becomes a URL under your dashboard page, for example /dashboard/resources/. When that URL is opened, dashboard.php loads the template dashboard/{key}.php, from your theme's tutor/ folder first.

In Tutor LMS 4 the student menu shows Home (index), Courses (courses) and, when enabled, Discussions. Account and password pages also have dashboard URLs but no menu link.

Step 1: Register the menu item

add_filter( 'tutor_student_dashboard_nav', 'tle_dashboard_resources_item' );

function tle_dashboard_resources_item( $items ) {
	$items['resources'] = array(
		'title'       => __( 'Resources', 'tle' ),
		'icon'        => \TUTOR\Icon::DOWNLOAD,
		'active_icon' => \TUTOR\Icon::DOWNLOAD,
	);
	return $items;
}

Icons are names from the TUTOR\Icon class, which Tutor LMS 4 uses for its own menu. An item with 'show_ui' => false gets a URL but no menu link, which is useful for sub-pages.

Step 2: Create the template

Create your-child-theme/tutor/dashboard/resources.php:

<?php
defined( 'ABSPATH' ) || exit;

$course_ids = tutor_utils()->get_enrolled_courses_ids_by_user( get_current_user_id() );
?>
<h2><?php esc_html_e( 'Resources', 'tle' ); ?></h2>
<ul>
	<?php foreach ( $course_ids as $course_id ) : ?>
		<?php $file = get_post_meta( $course_id, 'tle_workbook_url', true ); ?>
		<?php if ( $file ) : ?>
			<li><a href="<?php echo esc_url( $file ); ?>"><?php echo esc_html( get_the_title( $course_id ) ); ?> workbook</a></li>
		<?php endif; ?>
	<?php endforeach; ?>
</ul>

To keep the template in a plugin instead, use the tutor_get_template_path filter (see overriding templates).

Tutor LMS builds rewrite rules for dashboard pages from the menu items. After adding one, go to Settings > Permalinks and click Save Changes, or the new URL returns a 404.

Restricting who sees it

Add an auth_cap key with a capability; the menu link is hidden from users without it (admins always see it). Also check the capability inside the template, because hiding a link does not protect the URL.

Instructor pages

For instructors, use tutor_dashboard/instructor_nav_items with the same item format. Tutor LMS 4 lets users switch between the student and instructor views, and each view shows its own menu.

Troubleshooting

  • 404 on the new page: permalinks not refreshed.
  • "The file you are trying to load does not exist": the template path or file name does not match the menu key.
  • Menu item missing: the user is in the other view (student or instructor), or lacks auth_cap.

Need a custom dashboard? Our customization service builds dashboard pages that survive updates.

Save this practical guide

Add us as a preferred Google source, or ask an AI assistant to summarize this page and link back to the original guide when it is useful.

Vishavjeet
· Enterprise LMS Architect | WordPress & LMS Expert | WooCommerce | AI Automation

I’m Vishavjeet Choubey, an Enterprise LMS Architect with 10+ years of experience helping businesses, coaches, universities, and online academies build and scale powerful digital learning platforms. I specialize in enterprise LMS architecture, WordPress, WooCommerce, LifterLMS, LearnDash, Moodle, custom plugin development, and AI-driven automation. I build scalable LMS platforms, high-converting eCommerce solutions, and custom WordPress applications designed to improve user experiences, streamline operations, and drive measurable business growth. My approach combines deep WordPress and LMS engineering expertise with modern AI automation to reduce manual work, improve efficiency, and help organizations launch, scale, and grow faster.

Keep reading

Need a custom Tutor LMS solution?

Tell us what you are building or what is broken. A Tutor LMS developer reads every inquiry and replies with next steps and a free estimate.

Get a free Tutor LMS consultation

Tell us what you are building or fixing. A Tutor LMS developer replies with honest advice and next steps.

  • No obligation
  • Tutor LMS and Pro specialists
  • Your details stay private

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.