rss_update_period

This filter is documented in wp-includes/feed-rss2.php.

Description

apply_filters( 'rss_update_period', (string) $hourly ); 

Parameters (1)

0. $hourly (string) => 'hourly'
The hourly.

Usage

To run the hook, copy the example below.
  1. $hourly = apply_filters( 'rss_update_period', $hourly ); 
  2.  
  3. if ( !empty( $hourly ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the rss_update_period callback 
  2. function filter_rss_update_period( $hourly ) { 
  3. // make filter magic happen here... 
  4. return $hourly
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'rss_update_period', 'filter_rss_update_period', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'rss_update_period', 'filter_rss_update_period', 10, 1 ); 

Defined (3)

The filter is defined in the following location(s).

/wp-includes/feed-rdf.php  
  1. echo apply_filters( 'rss_update_period', 'hourly' ); 
/wp-includes/feed-rss2-comments.php  
  1. echo apply_filters( 'rss_update_period', 'hourly' ); 
/wp-includes/feed-rss2.php  
  1. echo apply_filters( 'rss_update_period', $duration );