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
| Type | Name | Description |
|---|---|---|
int | $max_log_size | Maximum log size. Default MAX_RATING_LOG_SIZE (10000). |
Usage
add_filter( 'wzkb_rating_max_log_size', function($max_log_size) {
// ...
return $max_log_size;
} );