the_category_rss

過濾鉤子
apply_filters( 'the_category_rss', $the_list, $type )
引數
  • (string) $the_list All of the RSS post categories.
    Required:
  • (string) $type Type of feed. Possible values include 'rss2', 'atom'. Default 'rss2'.
    Required:
定義位置
相關勾子
the_categorythe_title_rssthe_excerpt_rsscategory_css_classcategory_link
相關方法
the_category_rssget_the_category_rssthe_categorythe_category_idthe_category_headget_category_rss_link
引入
1.2.0
棄用
-

the_category_rss與the_category類似,但專門用於RSS訂閱。它以適合在RSS feed中使用的格式顯示文章的類別。

過濾所有的文章類別,以便在feed中顯示。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'the_category_rss', $the_list, $type );
return apply_filters( 'the_category_rss', $the_list, $type );
return apply_filters( 'the_category_rss', $the_list, $type );

常見問題

FAQs
檢視更多 >