Tutor LMS: Remove Student Dashboard Menu Items
Hides student dashboard menu items you don't use, such as Wishlist, Reviews or Q&A, to keep the Tutor LMS dashboard focused.
Opens WPIDE on
Code
if ( ! function_exists( 'tutor_utils' ) ) {
return;
}
// Dashboard items to remove.
$wpide_tutor_hidden_items = array( 'wishlist', 'reviews' );
$wpide_tutor_hide_items = function ( $items ) use ( $wpide_tutor_hidden_items ) {
foreach ( $wpide_tutor_hidden_items as $key ) {
unset( $items[ $key ] );
}
return $items;
};
add_filter( 'tutor_dashboard/nav_items', $wpide_tutor_hide_items );
add_filter( 'tutor_dashboard/nav_ui_items', $wpide_tutor_hide_items );
Notes
Item keys depend on your Tutor version; in Tutor 2 and 3 they include wishlist, reviews, question-answer, my-quiz-attempts and purchase_history.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.