Templates

Here we discuss all the available hooks inside the files available under tutor/templates/ folder.

archive-course.php

do_action('tutor_course/archive/before_loop');
do_action('tutor_course/archive/before_loop_course');
do_action('tutor_course/archive/after_loop_course');
do_action('tutor_course/archive/after_loop');

dashboard.php

do_action('tutor_dashboard/before/wrap');
do_action('tutor_load_dashboard_template_before', $dashboard_page_name);
do_action('tutor_load_dashboard_template_after', $dashboard_page_name);
do_action('tutor_dashboard/after/wrap');

login.php

do_action('tutor/template/login/before/wrap');
do_action('tutor/template/login/after/wrap');

single-assignment.php

do_action('tutor_assignment/single/before/wrap');
do_action('tutor_assignment/single/after/wrap');

single-course-enrolled-announcements.php

do_action('tutor_course/single/enrolled/before/wrap');
do_action('tutor_course/single/enrolled/before/inner-wrap');
do_action('tutor_course/single/enrolled/after/inner-wrap');
do_action('tutor_course/single/enrolled/before/sidebar');
do_action('tutor_course/single/enrolled/after/sidebar');
do_action('tutor_course/single/enrolled/after/wrap');

single-course-enrolled-overview.php

do_action('tutor_course/single/enrolled/before/wrap');
do_action('tutor_course/single/enrolled/before/inner-wrap');
do_action('tutor_course/single/enrolled/after/inner-wrap');
do_action('tutor_course/single/enrolled/before/sidebar');
do_action('tutor_course/single/enrolled/after/sidebar');
do_action('tutor_course/single/enrolled/after/wrap');

single-course-enrolled-questions.php

do_action( 'tutor_course/single/enrolled/before/wrap');
do_action( 'tutor_course/single/enrolled/before/inner-wrap');
do_action( 'tutor_course/single/enrolled/before/inner-wrap');
do_action('tutor_course/single/enrolled/before/sidebar');
do_action('tutor_course/single/enrolled/after/sidebar');
do_action('tutor_course/single/enrolled/after/wrap');

single-course-enrolled-subpage.php

do_action('tutor_course/single/enrolled/before/wrap');
do_action('tutor_course/single/enrolled/before/inner-wrap');
do_action("tutor_course/single/enrolled/{$course_subpage}", get_the_ID());
do_action('tutor_course/single/enrolled/after/inner-wrap');
do_action('tutor_course/single/enrolled/before/sidebar');
do_action('tutor_course/single/enrolled/after/sidebar');
do_action('tutor_course/single/enrolled/after/wrap');

single-course-enrolled.php

do_action('tutor_course/single/enrolled/before/wrap');
do_action('tutor_course/single/enrolled/before/inner-wrap');
do_action('tutor_course/single/enrolled/after/inner-wrap');
do_action('tutor_course/single/enrolled/before/sidebar');
do_action('tutor_course/single/enrolled/after/sidebar');
do_action('tutor_course/single/enrolled/after/wrap');

single-course.php

do_action('tutor_course/single/before/wrap');
do_action('tutor_course/single/before/inner-wrap');
do_action('tutor_course/single/after/inner-wrap');
do_action('tutor_course/single/before/sidebar');
do_action('tutor_course/single/after/sidebar');
do_action('tutor_course/single/after/wrap');

single-lesson.php

do_action('tutor_lesson/single/before/wrap');
do_action('tutor_lesson/single/after/wrap');

single-preview-lesson.php

do_action('tutor_lesson/single/before/wrap');
do_action('tutor_lesson/single/before/lesson_sidebar');
do_action('tutor/lesson_list/before/topic', $topic_id);
do_action('tutor/lesson_list/after/topic', $topic_id);
do_action('tutor_lesson/single/after/lesson_sidebar');
do_action('tutor_lesson/single/before/content');
do_action('tutor_lesson/single/before/content');
do_action('tutor_lesson/single/after/content');
do_action('tutor_lesson/single/after/wrap');

single-quiz.php

do_action('tutor_quiz/single/before/wrap');

student-public-profile.php

do_action('tutor_student/before/wrap');
do_action('tutor_student/after/wrap');

Frontend Profile Edit Settings

/templates/dashboard/settings/profile.php

do_action('tutor_profile_edit_form_before');
do_action('tutor_profile_edit_input_before');
do_action('tutor_profile_edit_input_after');
do_action('tutor_profile_edit_form_after');

reset-password.php

do_action('tutor_reset_password_input_before')
do_action('tutor_reset_password_input_after')

withdraw-settings.php

do_action('tutor_withdraw_set_account_form_before');
do_action("tutor_withdraw_set_account_{$method_id}_before");
do_action("tutor_withdraw_set_account_{$method_id}_after");
do_action('tutor_withdraw_set_account_form_after');

Course Attachments

wp-content/plugins/tutor/templates/global/attachments.php

do_action('tutor_global/before/attachments');
do_action('tutor_global/after/attachments');

Course Loop

wp-content/plugins/tutor/templates/loop/course.php

do_action('tutor_course/loop/before_content');
do_action('tutor_course/loop/badge');
do_action('tutor_course/loop/before_header');
do_action('tutor_course/loop/header');
do_action('tutor_course/loop/after_header');
do_action('tutor_course/loop/start_content_wrap');
do_action('tutor_course/loop/before_rating');
do_action('tutor_course/loop/rating');
do_action('tutor_course/loop/after_rating');
do_action('tutor_course/loop/before_title');
do_action('tutor_course/loop/title');
do_action('tutor_course/loop/after_title');
do_action('tutor_course/loop/before_meta');
do_action('tutor_course/loop/meta');
do_action('tutor_course/loop/after_meta');
do_action('tutor_course/loop/before_excerpt');
do_action('tutor_course/loop/excerpt');
do_action('tutor_course/loop/after_excerpt');
do_action('tutor_course/loop/end_content_wrap');
do_action('tutor_course/loop/before_footer');
do_action('tutor_course/loop/footer');
do_action('tutor_course/loop/after_footer');
do_action('tutor_course/loop/after_content');

tutor-pagination.php

do_action('tutor_course/archive/pagination/before');
do_action('tutor_course/archive/pagination/after');

My Courses

wp-content/plugins/tutor/templates/profile/courses_taken.php

do_action('tutor_course/archive/before_loop_course');
do_action('tutor_course/archive/after_loop_course');

enrolled_course.php

do_action('tutor_course/archive/before_loop_course');
do_action('tutor_course/archive/after_loop_course');

wp-content/plugins/tutor/templates/shortcode/tutor-course.php

do_action('tutor_course/archive/before_loop_course');
do_action('tutor_course/archive/after_loop_course');

wp-content/plugins/tutor/templates/single/assignment/content.php

do_action('tutor_assignment/single/before/content');
do_action('tutor_assignment/single/after/content');

/templates/single/course/add-to-cart-woocommerce.php

do_action( 'tutor_before_add_to_cart_button');
do_action( 'tutor_after_add_to_cart_button');

add-to-cart.php

do_action('tutor_course/single/add-to-cart/before');
<?php do_action('tutor_course/single/add-to-cart/after');

closed-enrollment.php

do_action('tutor_course/single/closed-enrollment/before');
do_action('tutor_course/single/closed-enrollment/after');

complete_form.php

do_action('tutor_course/single/before/complete_form');
do_action('tutor_course/single/after/complete_form');

course-benefits.php

do_action('tutor_course/single/before/benefits');
do_action('tutor_course/single/after/benefits');

course-content.php

do_action('tutor_course/single/before/content');
do_action('tutor_course/single/after/content');

course-enroll-box.php

do_action('tutor_course/single/enroll_box/after_thumbnail');

course-enrolled-box.php

do_action('tutor_course/single/actions_btn_group/before');
do_action('tutor_course/single/actions_btn_group/after');
do_action('tutor_enrolled_box_after');

course-requirements.php

do_action('tutor_course/single/before/requirements');
do_action('tutor_course/single/after/requirements');

course-target-audience.php

do_action('tutor_course/single/before/audience');
do_action('tutor_course/single/after/audience');

course-topics.php

do_action('tutor_course/single/before/topics');
do_action('tutor_course/single/after/topics');

instructors.php

do_action('tutor_course/single/enrolled/before/instructors');
do_action('tutor_course/single/enrolled/after/instructors');

lead-info.php

do_action('tutor_course/single/title/before');
do_action('tutor_course/single/title/after');
do_action('tutor_course/single/lead_meta/before');
do_action('tutor_course/single/lead_meta/after');
do_action('tutor_course/single/excerpt/before');
do_action('tutor_course/single/excerpt/after');

material-includes.php

do_action('tutor_course/single/before/material_includes');
do_action('tutor_course/single/after/material_includes');

reviews.php

do_action('tutor_course/single/enrolled/before/reviews');
do_action('tutor_course/single/enrolled/after/reviews');

tags.php

do_action('tutor_course/single/before/tags');
do_action('tutor_course/single/after/tags');

Announcements

tutor/templates/single/course/enrolled/announcements.php

do_action('tutor_course/announcements/before');
do_action('tutor_course/announcements/after');

completing-progress.php

do_action('tutor_course/single/enrolled/before/lead_info/progress_bar');
do_action('tutor_course/single/enrolled/after/lead_info/progress_bar');

lead-info.php

do_action('tutor_course/single/title/after');
do_action('tutor_course/single/lead_meta/before');
do_action('tutor_course/single/lead_meta/after');
do_action('tutor_course/single/excerpt/before');
do_action('tutor_course/single/excerpt/after');
do_action('tutor_course/single/enrolled/nav/before');
do_action('tutor_course/single/enrolled/nav/after');

question_and_answer.php

do_action('tutor_course/question_and_answer/before');
do_action('tutor_course/question_and_answer/after');

/tutor/templates/single/lesson/complete_form.php

do_action('tutor_lesson/single/before/complete_form');
do_action('tutor_lesson/single/after/complete_form');

content.php

do_action('tutor_lesson/single/before/content');
do_action('tutor_lesson/single/after/content');

lesson_sidebar.php

do_action('tutor_lesson/single/before/lesson_sidebar');
do_action('tutor/lesson_list/before/topic', $topic_id);
do_action('tutor/lesson_list/right_icon_area', $post);
do_action('tutor/lesson_list/right_icon_area', $post);
do_action('tutor/lesson_list/right_icon_area', $post);
do_action('tutor/lesson_list/after/topic', $topic_id);
do_action('tutor_lesson/single/after/lesson_sidebar');

required-enroll.php

do_action('tutor_lesson/single/before/wrap');
do_action('tutor_lesson/single/after/wrap');

sidebar_question_and_answer.php

do_action('tutor_course/question_and_answer/before');
do_action('tutor_course/question_and_answer/after');

wp-content/plugins/tutor/templates/single/quiz/body.php

do_action('tutor_quiz/body/before', $quiz_id);
do_action('tuotr_quiz/start_form/before', $quiz_id);
do_action('tuotr_quiz/start_form/after', $quiz_id);
do_action('tutor_quiz/previous_attempts_html/before', $previous_attempts, $quiz_id);
do_action('tutor_quiz/previous_attempts/after', $previous_attempts, $quiz_id);
do_action('tutor_quiz/body/after', $quiz_id);

content.php

do_action('tutor_quiz/content/before', $quiz_id);
do_action('tutor_quiz/content/after', $quiz_id);

previous-attempts.php

do_action('tutor_quiz/previous_attempts/table/thead/col');
do_action('tutor_quiz/previous_attempts/table/tbody/col', $attempt);

top.php

do_action('tutor_quiz/single/before/top');
do_action('tutor_quiz/single/after/top');

/tutor/templates/single/video/embedded.php

do_action('tutor_lesson/single/before/video/embedded');
do_action('tutor_lesson/single/after/video/embedded');

external_url.php

do_action('tutor_lesson/single/before/video/external_url');
do_action('tutor_lesson/single/after/video/external_url');

html5.php

do_action('tutor_lesson/single/before/video/html5');
do_action('tutor_lesson/single/after/video/html5');

video.php

do_action('tutor_lesson/single/before/video');
do_action('tutor_lesson/single/after/video');

vimeo.php

do_action('tutor_lesson/single/before/video/vimeo');
do_action('tutor_lesson/single/after/video/vimeo');

youtube.php

do_action('tutor_lesson/single/before/video/youtube');
do_action('tutor_lesson/single/after/video/youtube');

/tutor/templates/template-part/form-retrieve-password.php

do_action( 'tutor_before_reset_password_form' );
do_action( 'tutor_reset_password_form' );
do_action( 'tutor_after_reset_password_form' );

Was this helpful?