Recent

wzkb_rating_bayesian_prior_weight filter Pro only

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

TypeNameDescription
int$prior_weightPrior weight constant (default: 10).
string$modeCurrent rating mode (binary or scale).

Usage

add_filter( 'wzkb_rating_bayesian_prior_weight', function($prior_weight, $mode) {
    // ...
    return $prior_weight;
} );