comment_text_rss

過濾鉤子
apply_filters( 'comment_text_rss', $comment_text )
引數
  • (string) $comment_text The content of the current comment.
    Required:
定義位置
相關勾子
comment_textcomment_author_rssget_comment_textcomment_edit_precomment_excerpt
相關方法
comment_text_rsscomment_textcomment_existscomments_rsscomment_author_rssget_comment_text
引入
1.5.0
棄用
-

comment_text_rss是一個過濾鉤,允許你修改包含在RSS feed中的評論文字。你可以使用這個鉤子來為你的RSS提要以不同的格式顯示評論文字,而不是在你的網站上顯示。

過濾當前評論的內容,以便在feed中使用。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$comment_text = apply_filters( 'comment_text_rss', $comment_text );
$comment_text = apply_filters( 'comment_text_rss', $comment_text );
$comment_text = apply_filters( 'comment_text_rss', $comment_text );

常見問題

FAQs
檢視更多 >