Change single title on courses, quizzes and lessons

With the code below you can change the title on the single course, quiz and lesson pages.

Please note that this is a Developer level document. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.

add_filter('sensei_single_title', 'custom_single_title_prepend');
* Filter the sensei single titles ( singular course, lesson and quiz )
* @param $title
* @return string
function custom_single_title_prepend( $title ){
if( is_singular( 'course' ) ){
return 'Course: '. $title;
}elseif( is_singular( 'lesson' ) ){
return 'Lesson: '. $title;
}elseif( is_singular( 'quiz' ) ){
return 'Quiz: '. $title;
return $title;
} // end custom_single_title_prepend

view raw
hosted with ❤ by GitHub