Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change Sensei single course, lesson and quiz titles.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.