Snippets: Change the Related Post Title Heading Tag

The default related post title heading tag is an h4 but you can easily change this to anything you want with a little code. Note: Changing the heading tag will not affect the design, only the tag itself. This change would be done purely for SEO reasons.

add_filter( 'wpex_heading_blog_related', function( $args ) {
    $args['tag'] = 'h3';
    return $args;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)