apply_filters ( 'jetpack_relatedposts_filter_post_formats', array $args[’post_formats’], string $post_id )

Filter the Post Formats where we search Related Posts.

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

View in GitHub

Parameters

$args[’post_formats’]

(array) Array of Post Formats.

$post_id

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


Changelog

Since: Jetpack 3.3.0


Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us