jetpack_relatedposts_filter_filters, $filters, $post_id

jetpack_relatedposts_filter_filters, $filters, $post_id

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_relatedposts_filter_filters, $filters, $post_id') is found 1 times:

  • /modules/related-posts/jetpack-related-posts.php line 974
    		 *
    		 * @param array $filters Array of Elasticsearch filters based on the post_id and args.
    		 * @param string $post_id Post ID of the post for which we are retrieving Related Posts.
    		 */
    		$filters = apply_filters( 'jetpack_relatedposts_filter_filters', $filters, $post_id );
    
    		$results = $this->get_related_posts( $post_id, $args['size'], $filters );
    		/**
    		 * Filter the array of related posts matched by Elasticsearch.
    		 *
    		 * @module related-posts