Recent

wzkb_rating_max_log_size filter Pro only

wzkb_rating_max_log_size

Filters the maximum number of individual rating log entries stored per article.

When the limit is reached the oldest 10% of entries are pruned before appending the new one, keeping the stored array bounded.

Type: filter
Since: 3.0.0
Source: includes/rating/class-rating.php line 1094

Parameters

TypeNameDescription
int$max_log_sizeMaximum log size. Default MAX_RATING_LOG_SIZE (10000).

Usage

add_filter( 'wzkb_rating_max_log_size', function($max_log_size) {
    // ...
    return $max_log_size;
} );