wzkb_related_post_score
Filters the relevance score calculated for a related article.
Type: filter
Since: 3.0.0
Source: includes/frontend/class-related.php line 429
Parameters
| Type | Name | Description |
|---|---|---|
float |
$score |
Relevance score from shared terms and recency. |
\WP_Post |
$post |
The related article being scored. |
array |
$args |
Arguments used to build the related articles query. |
Usage
add_filter( 'wzkb_related_post_score', function($score, $post, $args) {
// ...
return $score;
} );