feed_content_type

過濾鉤子
apply_filters( 'feed_content_type', $content_type, $type )
引數
  • (string) $content_type Content type indicating the type of data that a feed contains.
    Required:
  • (string) $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
    Required:
定義位置
相關勾子
embed_content_metaget_comment_typeembed_contentwp_mail_content_typethe_content_feed
相關方法
feed_content_typeget_comment_typecomment_typethe_content_feedget_the_content_feedthe_content
引入
2.8.0
棄用
-

feed_content_type – 這個函式為WordPress的feed設定內容型別。內容型別是用來決定饋送在網路瀏覽器或RSS閱讀器中的顯示方式。預設情況下,內容型別被設定為”application/rss+xml”。

過濾特定feed型別的內容型別。

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

常見問題

FAQs
檢視更多 >