Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss_update_period

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
39      /**
40       * Filter how often to update the RSS feed.
41       *
42       * @since 2.1.0
43       *
44       * @param string $duration The update period.
45       *                         Default 'hourly'. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.
46       */
47      ?>
48      <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', $duration ); ?></sy:updatePeriod>
49      <?php
50      $frequency = '1';
51      /**
52       * Filter the RSS update frequency.
53       *
54       * @since 2.1.0
55       *
56       * @param string $frequency An integer passed as a string representing the frequency
57       *                          of RSS updates within the update period. Default '1'.