WordPress action hook

tutor_course/single/after/topics

Defined by Tutor LMS and fired by 4 plugins in total, running on 111K+ sites between them.

How to use tutor_course/single/after/topics

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'tutor_course/single/after/topics', function( $course_id ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from Tutor LMS's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire tutor_course/single/after/topics

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Tutor LMS icon Tutor LMS90,000+ installs do_action( 'tutor_course/single/after/topics', $course_id ) templates/single/course/course-topics.php:157
  2. Tutor LMS Elementor Addons icon Tutor LMS Elementor Addons20,000+ installs do_action( 'tutor_course/single/after/topics' ) templates/course/curriculum.php:128
  3. Tutor LMS Divi Modules icon Tutor LMS Divi Modules1,000+ installs do_action( 'tutor_course/single/after/topics' ) includes/templates/course/curriculum/course-topics.php:134
  4. Educat Elementor LMS Addon icon Educat Elementor LMS Addon20+ installs do_action( 'tutor_course/single/after/topics', $course_id ) includes/widgets/course-single/course-topics/view.php:147

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.