Filters the transient lifetime of the feed cache.
Parameters
$lifetime
int- Cache duration in seconds. Default is 43200 seconds (12 hours).
$filename
string- Unique identifier for the cache object.
Source
$this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Example Migrated from Codex: