WordPress filter hook

tutor_course/contents/lesson/title

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

How to use tutor_course/contents/lesson/title

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'tutor_course/contents/lesson/title', function( $lesson_title, $the_id ) {
	// Change $lesson_title here.
	return $lesson_title;
}, 10, 2 );

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

5 plugins that fire tutor_course/contents/lesson/title

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 apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ) templates/single/course/course-topics.php:132
  2. Tutor LMS Elementor Addons icon Tutor LMS Elementor Addons20,000+ installs apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ) templates/course/curriculum.php:101
  3. Tutor LMS Divi Modules icon Tutor LMS Divi Modules1,000+ installs apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ) includes/templates/course/curriculum/course-topics.php:109
  4. Educat Elementor LMS Addon icon Educat Elementor LMS Addon20+ installs apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ) includes/widgets/course-single/course-topics-id/view.php:120
  5. Powdi Course Page Builder for Tutor LMS and Divi icon Powdi Course Page Builder for Tutor LMS and DiviFewer than 10 installs apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ) divi5-tutor-modules/partials/course-content.php:95

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.