wzkb_related_recency_boost
Filters the recency boost added to a related article’s score.
The boost runs from 1 for an article published now to 0 for one a year or older.
Type: filter
Since: 3.0.0
Source: includes/frontend/class-related.php line 415
Parameters
| Type | Name | Description |
|---|---|---|
float |
$recency_boost |
Boost added to the score. |
\WP_Post |
$post |
The related article being scored. |
array |
$args |
Arguments used to build the related articles query. |
Usage
add_filter( 'wzkb_related_recency_boost', function($recency_boost, $post, $args) {
// ...
return $recency_boost;
} );