better_search_query_has_recency_boost
Filters whether result ordering carries a recency boost.
When true, topscore cannot be taken from the first page of results or from the first row of the ordered query, and must be obtained as an explicit maximum raw score.
Type: filter
Since: 4.5.0
Source: includes/class-better-search-core-query.php line 2008
Parameters
| Type | Name | Description |
|---|---|---|
bool |
$has_boost |
Whether the ordering is recency boosted. |
array |
$args |
Query arguments. |
Better_Search_Core_Query |
$instance |
The Better_Search_Core_Query instance. |
Usage
add_filter( 'better_search_query_has_recency_boost', function($has_boost, $args, $instance) {
// ...
return $has_boost;
} );