WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_feed_cache_transient_lifetime

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/feed.php apply_filters 817 /**
* Builds SimplePie object based on RSS or Atom feed from URL.
*
* @since 2.8.0
*
* @param string|string[] $url URL of feed to retrieve. If an array of URLs, the feeds are merged
* using SimplePie's multifeed feature.
* See also {@link http://simplepie.org/wiki/faq/typical_multifeed_gotchas}
* @return SimplePie|WP_Error SimplePie object on success or WP_Error object on failure.
*/
wp-includes/class-wp-feed-cache-transient.php apply_filters 67 /**
* Filters the transient lifetime of the feed cache.
*
* @since 2.8.0
*
* @param int $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
* @param string $filename Unique identifier for the cache object.
*/

Hook Parameters

Parameter Type Name Description
int $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
string $filename Unique identifier for the cache object.