apply_filters ( 'jetpack_relatedposts_returned_results', array $results, string $post_id )

Filter the array of related posts matched by Elasticsearch.

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

View in GitHub

Parameters

$results

(array) Array of related posts matched by Elasticsearch.

$post_id

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


Changelog

Since: Jetpack 2.8.0


Have a question?

Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.

View support forum