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

Parameters

$display_markup

(string) HTML output of Related Posts.

get_the_ID()

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

$related_posts

(array) Array of related posts.

$block_attributes

(array) Array of Block attributes.


Changelog

Since: Jetpack 10.7


Notes

Have a note to contribute?

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

WordPress.com Logo

You are commenting using your WordPress.com 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