rss_update_period WordPress Filter Hook

The rss_update_period hook allows you to specify the frequency at which your RSS feed is updated. This hook is useful if you want to ensure that your feed is always up-to-date, or if you want to control how often your feed is updated.

apply_filters( 'rss_update_period', string $duration ) #

Filters how often to update the RSS feed.


Parameters

$duration

(string)The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'. Default 'hourly'.


Top ↑

Source

File: wp-includes/feed-rss2.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.