wppaste
WordPress

apply_filters( 'wp_feed_cache_transient_lifetime', int $lifetime, string $name )

Since
2.8.0
Filters the transient lifetime of the feed cache.

Parameters

$lifetimeint
Cache duration in seconds. Default is 43200 seconds (12 hours).
$namestring
Unique identifier for the cache object.

Fired at · 2

  • wp-includes/class-wp-feed-cache-transient.php:71WP_Feed_Cache_Transient::__construct()
  • wp-includes/feed.php:836fetch_feed()

Source

		 *		 * @since 2.8.0		 *		 * @param int    $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).		 * @param string $name     Unique identifier for the cache object.		 */		$this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $name );	} 	/**	 * Saves data to the transient.	 *	 * @since 2.8.0

History

Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.