filter

jetpack_relatedposts_filter_post_heading

Filter each Related Post Heading structure.

Parameters

$str
string

Related Post Heading structure. Default to h4.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

In the example below, we’ll change the Related Posts heading from the default h4 to h5:
function jetpackcom_custom_post_heading() {
	return 'h5';
}
add_filter( 'jetpack_relatedposts_filter_post_heading', 'jetpackcom_custom_post_heading' );