rss_update_period filter-hookWP 2.1.0

Filters how often to update the RSS feed.


add_filter( 'rss_update_period', 'wp_kama_rss_update_period_filter' );

 * Function for `rss_update_period` filter-hook.
 * @param string $duration The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.
 * @return string
function wp_kama_rss_update_period_filter( $duration ){

	// filter...
	return $duration;
The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.
Default: 'hourly'


Since 2.1.0 Introduced.

Where the hook is called

In file: /wp-includes/feed-rss2.php
wp-includes/feed-rss2.php 59
echo apply_filters( 'rss_update_period', $duration );
wp-includes/feed-rdf.php 40
echo apply_filters( 'rss_update_period', 'hourly' );
wp-includes/feed-rss2-comments.php 56
echo apply_filters( 'rss_update_period', 'hourly' );

Where the hook is used in WordPress

Usage not found.