rss_update_period

過濾鉤子
apply_filters( 'rss_update_period', $duration )
引數
  • (string) $duration The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'. Default 'hourly'.
    Required:
定義位置
相關勾子
pre_update_optionupdate_optionrss_update_frequencyupdated_optionwp_update_term_data
相關方法
update_optionwp_update_postwp_update_termwp_update_userupdate_user_optionupdate_archived
引入
2.1.0
棄用
-

rss_update_period: 這個函式設定網站RSS資訊更新的週期。該週期以秒為單位,可以設定為一個秒數,如3600(1小時)或86400(1天)。

設定更新 RSS Feed 的頻率。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'rss_update_period', $duration );
echo apply_filters( 'rss_update_period', $duration );
echo apply_filters( 'rss_update_period', $duration );

常見問題

FAQs
檢視更多 >