the_content_feed

過濾鉤子
apply_filters( 'the_content_feed', $content, $feed_type )
引數
  • (string) $content The current post content.
    Required:
  • (string) $feed_type Type of feed. Possible values include 'rss2', 'atom'. Default 'rss2'.
    Required:
定義位置
相關勾子
the_contentthe_content_exportphone_contentfeed_content_typethe_editor_content
相關方法
the_content_feedget_the_content_feedthe_contentthe_content_rssis_comment_feedget_the_content
引入
2.9.0
棄用
-

the_content_feed與the_content類似,但專門用於RSS提要。它用於將文章內容的格式化,使之適合於在RSS feed中使用。

過濾用於feeds的文章內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'the_content_feed', $content, $feed_type );
return apply_filters( 'the_content_feed', $content, $feed_type );
return apply_filters( 'the_content_feed', $content, $feed_type );

常見問題

FAQs
檢視更多 >