On this page
apply_filters( 'wp_feed_cache_transient_lifetime', int $lifetime, string $filename )
Filters the transient lifetime of the feed cache.
Parameters
$lifetimeint-
Cache duration in seconds. Default is 43200 seconds (12 hours).
$filenamestring-
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 );
Related
Used By
| Used By | Description |
|---|---|
| WP_Feed_Cache_Transient::__construct() wp-includes/class-wp-feed-cache-transient.php | Constructor. |
| fetch_feed() wp-includes/feed.php | Builds SimplePie object based on RSS or Atom feed from URL. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_feed_cache_transient_lifetime