wp_feed_options

動作鉤子
do_action_ref_array( 'wp_feed_options', array( &$feed, $url )
引數
  • (SimplePie) $feed SimplePie feed object (passed by reference).
    Required:
  • (string|string[]) $url URL of feed or array of URLs of feeds to retrieve.
    Required:
定義位置
相關勾子
wpmu_optionsallowed_optionspre_optiondeleted_optionupdated_option
相關方法
wp_load_alloptionsscreen_optionsset_screen_optionspopulate_optionsadd_allowed_optionsupdate_option
引入
3.0.0
棄用
-

wp_feed_options: 該函式是用來獲取與內容提要相關的選項。它通過 get_option 函式獲取”feed_type”,”feed_email”,”rss_language” 和”comments_per_page” 選項。

在處理SimplePie feed物件之前啟動。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );

常見問題

FAQs
檢視更多 >