comments_link_feed

過濾鉤子
apply_filters( 'comments_link_feed', get_comments_link()
引數
  • (string) $comment_permalink The current comment permalink with '#comments' appended.
    Required:
定義位置
相關勾子
comment_linkget_comments_linkcomment_id_fieldspost_comments_linkget_comment_link
相關方法
comments_link_feedcomments_linkcomment_linkcomment_id_fieldscomments_rss_linkget_comments_link
引入
3.6.0
棄用
-

comments_link_feed: 這個函式為一個給定的文章生成評論feed的URL。你可以使用這個函式來獲取評論反饋的URL,然後在你的自定義程式碼中使用它。

過濾當前文章的評論固定連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );
echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );

常見問題

FAQs
檢視更多 >