Snippets: Alter Page Subheading

function my_remove_author_subheading( $subheading ) {
 
    // Set subheading to empty for author archive
    if ( is_author() ) {
        $subheading = '';
    }
 
    // Return the subheading
    return $subheading;
    
}
add_filter( 'wpex_post_subheading', 'my_remove_author_subheading' );
All PHP snippets should be added via a child theme's functions.php file.