Filter hook 'rss_update_frequency'

in WP Core File wp-includes/feed-rss2.php at line 74

View Source

rss_update_frequency

Filter Hook
Description
Filters the RSS update frequency.

Hook Information

File Location wp-includes/feed-rss2.php View on GitHub
Hook Type Filter
Line Number 74

Hook Parameters

Type Name Description
string $frequency An integer passed as a string representing the frequency of RSS updates within the update period. Default '1'.

Usage Examples

Basic Usage
<?php
// Hook into rss_update_frequency
add_filter('rss_update_frequency', 'my_custom_filter', 10, 1);

function my_custom_filter($frequency) {
    // Your custom filtering logic here
    return $frequency;
}

Source Code Context

wp-includes/feed-rss2.php:74 - How this hook is used in WordPress core
<?php
  69  		 * @since 2.1.0
  70  		 *
  71  		 * @param string $frequency An integer passed as a string representing the frequency
  72  		 *                          of RSS updates within the update period. Default '1'.
  73  		 */
  74  		echo apply_filters( 'rss_update_frequency', $frequency );
  75  	?>
  76  	</sy:updateFrequency>
  77  	<?php
  78  	/**
  79  	 * Fires at the end of the RSS2 Feed Header.

PHP Documentation

<?php
/**
		 * Filters the RSS update frequency.
		 *
		 * @since 2.1.0
		 *
		 * @param string $frequency An integer passed as a string representing the frequency
		 *                          of RSS updates within the update period. Default '1'.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/feed-rss2.php
Related Hooks

Related hooks will be displayed here in future updates.