add_filter( 'wpex_post_subheading', function( $subheading ) {
// Remove author subheading.
if ( is_author() ) {
return '';
}
// Display a custom subheading for my_post_type posts.
if ( is_singular( 'my_post_type' ) ) {
$subheading = 'My Post Type Subheading';
}
// Return the subheading.
return $subheading;
} );
Snippets: Alter Page Title Subheading
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)