Snippets: Display Testimonial Post Title On Single Testimonials Page Header

function my_testimonials_page_title( $title ) {
    if ( is_singular( 'testimonials' ) ) {
        $title = get_the_title();
    }
    return $title;
}
add_filter( 'wpex_title', 'my_testimonials_page_title', 40 );
All PHP snippets should be added via a child theme's functions.php file.