wzkb_rating_bayesian_prior_weight
Filter the prior weight (minimum votes threshold) for Bayesian average.
Articles with fewer votes will be pulled toward the global average. Higher values = more conservative (requires more votes to rank high). Lower values = more aggressive (allows newer content to rank high).
Type: filter
Since: 3.0.0
Source: includes/rating/class-rating.php line 423
Parameters
| Type | Name | Description |
|---|---|---|
int | $prior_weight | Prior weight constant (default: 10). |
string | $mode | Current rating mode (binary or scale). |
Usage
add_filter( 'wzkb_rating_bayesian_prior_weight', function($prior_weight, $mode) {
// ...
return $prior_weight;
} );