Tutor LMS comes pre-packaged with a ton of shortcodes you can use to display various information. Here is your comprehensive list of all Tutor LMS shortcodes, along with how to use them.

Tutor LMS Shortcode Reference

Here’s a complete list of every available Tutor LMS shortcode. 

If you want to dig into the code, you can find a complete list of all Tutor LMS shortcodes and their parameters in /tutor/classes/Shortcodes.php

ShortcodeDescription
[tutor_course]Displays a single course or list of courses. Many options are available to filter & customize the output.

Available Parameters:

1.id
2. exclude_ids
3. category
4. orderby
5. order
6. count
7. column_per_row
8. course_filter
9. show_pagination
[tutor_dashboard]Displays student dashboard.
[tutor_student_registration_form]Display Student Registration form
[tutor_instructor_registration_form]Displays course instructor registration form.
[tutor_instructor_list]Displays list of course instructors.

Available Parameters:

1. column_per_row
2. filter
3. count
4. layout


While customizing Tutor LMS there are times where you need the student avatar, student profile URL or numbers of courses a student completed so far etc. This type of information about students can be easily fetched and then can be displayed in any widget, shortcode or template. You get any piece of information you require out of tutor_utils() function. Enjoy!

Get Tutor LMS Student Avatar

// Check if Tutor LMS exists
if ( function_exists( 'tutor_utils' ) ) {
    $tutor_user         = tutor_utils()->get_tutor_user( get_current_user_id() );
    $tutor_avatar_url   = esc_url(wp_get_attachment_image_url( $tutor_user->tutor_profile_photo, 'thumbnail' )); 

    echo $tutor_avatar_url;
}

Get Tutor LMS Student Cover URL

// Check if Tutor LMS exists
if ( function_exists( 'tutor_utils' ) ) {
    $tutor_user         = tutor_utils()->get_tutor_user( get_current_user_id() );
    $total_cover_url    = esc_url( tutor_utils()->get_cover_photo_url( $tutor_user ) );

    echo $total_cover_url;
}

Get Wishlist of a Student

// Check if Tutor LMS exists
if ( function_exists( 'tutor_utils' ) ) {
    $tutor_user             = tutor_utils()->get_tutor_user( get_current_user_id() );
    $total_wishlists_count  = count(tutor_utils()->get_wishlist($tutor_user));

    echo $total_wishlists_count;
}

There are plenty of reasons you might want to hide, remove, or disable the star rating on your Tutor LMS course page. Perhaps you want a cleaner design and remove the elements you think are unnecessary or adding clutter.

Removing Star Ratings or Reviews from all pages

Let’s start with the easiest and the fastest solution. Which is built-in Tutor LMS settings.

  1. Go to Dashboard > Tutor LMS > Settings
  2. Go to Design tab
  3. Scroll down to Course Details
  4. Disable the Review from Page Features
  5. Click on Save Changes.

However, It will remove star rating from single course pages and courses archive or listing pages as well.

Remove Review from Only Course Listing or Archive Pages

There are some cases where you want to keep the star rating visible in single course pages but want to hide them in course listing pages.

There are few different approaches that we can take to achieve this. But first, let’s start with the easiest and the fastest solution. That of course, is to just use CSS to hide star ratings from course listing pages.

Using CSS

Go to Appearance > Customize > Additional CSS and insert this CSS snippet.

.tutor-course-card .tutor-ratings {
    display:none;
}

Using Hook

Insert this php snippet in your themes functions.php

// Hide Reviews From Course Archive
remove_action('tutor_course/loop/rating', 'tutor_course_loop_rating');

Show Review to Logged in Users Only

Insert this php snippet in your themes functions.php

// Hide Reviews From Logged Out Users
add_action( 'wp', 'tutor_custom_hide_review_outsider' );
function tutor_custom_hide_review_outsider(){
    if ( ! is_user_logged_in() ) {
        remove_action('tutor_course/loop/rating', 'tutor_course_loop_rating');
    }
}