rss_update_period

过滤钩子


apply_filters( 'rss_update_period', $duration )
参数
  • (string)
    $duration
    The update period. Accepts ‘hourly’, ‘daily’, ‘weekly’, ‘monthly’,
    ‘yearly’. Default ‘hourly’.
    Required:
定义位置
  • wp-includes/feed-rss2.php
    , line 59
引入
2.1.0
弃用

Filters how often to update the RSS feed.

echo apply_filters( 'rss_update_period', $duration );