jetpack_relatedposts_filter_hits, $hits, $post_id
jetpack_relatedposts_filter_hits, $hits, $post_id
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_relatedposts_filter_hits, $hits, $post_id') is found 2 times:
- /modules/related-posts/jetpack-related-posts.php line 1588
* * @param array $hits Array of Post IDs matched by Elasticsearch. * @param string $post_id Post ID of the post for which we are retrieving Related Posts. */ $hits = apply_filters( 'jetpack_relatedposts_filter_hits', $hits, $post_id ); $related_posts = array(); foreach ( $hits as $i => $hit ) { $related_posts[] = $this->get_related_post_data_for_post( $hit['id'], $i, $post_id ); } return $related_posts; - /modules/related-posts/jetpack-related-posts.php line 2158
Warning: Undefined array key 2162 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 2163 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
) ); /** This filter is already documented in modules/related-posts/related-posts.php */ $hits = apply_filters( 'jetpack_relatedposts_filter_hits', $hits, $post_id ); return $hits; } }