apply_filters ( 'jetpack_related_posts_display_markup', string $display_markup, int get_the_ID(), array $related_posts, array $block_attributes )

Filter the output HTML of Related Posts.

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

View in GitHub



(string) HTML output of Related Posts.


(int) get_the_ID() Post ID of the post for which we are retrieving Related Posts.


(array) Array of related posts.


(array) Array of Block attributes.


Since: Jetpack 10.7


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 )

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