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