wp_feed_cache_transient_lifetime WordPress Filter Hook

The wp_feed_cache_transient_lifetime hook allows you to modify the transient lifetime for the RSS feed cache. This can be useful if you want to ensure that your feed is always up-to-date.

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.


Top ↑

Source

File: wp-includes/class-wp-feed-cache-transient.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.