Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_feed_cache_transient_lifetime

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
61           $lifetime = $this->lifetime;
62           /**
63            * Filters the transient lifetime of the feed cache.
64            *
65            * @since 2.8.0
66            *
67            * @param int    $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
68            * @param string $name     Unique identifier for the cache object.
69            */
70           $this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $name );
71      }
72
73      /**
74       * Saves data to the transient.
75       *
76       * @since 2.8.0
77       *
78       * @param array|SimplePie\SimplePie $data Data to save. If passed a SimplePie object,
79       *                                        only cache the `$data` property.