Recent

crp_is_relevance_ranked_poolfilter

crp_is_relevance_ranked_pool

Filter whether the query fetches its pool ranked by the selected score column.

Return false for any ordering that ranks on something other than score itself - the pro recency boost multiplies the score in ORDER BY only - so the threshold reads the top score from SQL instead of from a pool that may not contain it.

Type: filter
Since: 4.5.0
Source: includes/class-crp-core-query.php line 1283

Parameters

Type Name Description
bool $ranked Whether the pool is ranked by score.
CRP_Core_Query $instance The CRP_Core_Query instance.

Usage

add_filter( 'crp_is_relevance_ranked_pool', function($ranked, $instance) {
    // ...
    return $ranked;
} );