wzkb_related_articles_cache_ttl
Filters the cache TTL for related article queries.
Type: filter
Since: 3.0.0
Source: includes/frontend/class-related.php line 220
Parameters
| Type | Name | Description |
|---|---|---|
int | $ttl | Cache duration in seconds. |
array | $related_args | Arguments passed to WP_Query. |
array | $args | Original arguments passed to get_related_articles_query(). |
Usage
add_filter( 'wzkb_related_articles_cache_ttl', function($ttl, $related_args, $args) {
// ...
return $ttl;
} );