wzkb_related_tag_weight
Filters the weight given to a shared tag when scoring related articles.
Type: filter
Since: 3.0.0
Source: includes/frontend/class-related.php line 370
Parameters
| Type | Name | Description |
|---|---|---|
int |
$tag_weight |
Weight per matching tag. Default 1. |
array |
$args |
Arguments used to build the related articles query. |
Usage
add_filter( 'wzkb_related_tag_weight', function($tag_weight, $args) {
// ...
return $tag_weight;
} );