apply_filters( 'wp_feed_cache_transient_lifetime', int $lifetime , string $filename )
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
File: wp-includes/class-wp-feed-cache-transient.php
.
View all references
$this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example Migrated from Codex: