apply_filters( 'relevanssi_add_all_results', boolean $add_all )
Makes Relevanssi add a list of all found post IDs in the query object.
Parameters
$add_all
(boolean) If true
, add a list of all post IDs. Default false
.
More information
If this filter hook returns true
, Relevanssi will add an array of all post IDs found in the search to the query object in $query->relevanssi_all_results
.
add_filter( 'relevanssi_add_all_results', '__return_true' );
This filter hook was added to help with the FacetWP integration, but it can be used in any situation where it’s useful to get both the current page of results and the list of all posts found.