apply_filters ( 'jetpack_relatedposts_filter_headline', string $headline )

Filter the Related Posts headline.

Source file: modules/related-posts/jetpack-related-posts.php

View in GitHub



(string) Related Posts heading.


Since: Jetpack 3.0.0


In the example below, we’ll use the filter to change the headline heading from H3 to H4, and change the “Related” text into “Check These Out!”:

function jetpackme_related_posts_headline( $headline ) {
    $headline = sprintf(
        '<h4 class="jp-relatedposts-headline"><em>%s</em></h4>',
        esc_html( 'Check These Out!' )
    return $headline;
add_filter( 'jetpack_relatedposts_filter_headline', 'jetpackme_related_posts_headline' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s