post_comments_feed_link_html

過濾鉤子
apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed )
引數
  • (string) $link The complete anchor tag for the comment feed link.
    Required:
  • (int) $post_id Post ID.
    Required:
  • (string) $feed The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.
    Required:
定義位置
相關勾子
post_comments_feed_linkpost_comments_linkget_comments_linkget_comment_linkget_comments_pagenum_link
相關方法
post_comments_feed_linkget_post_comments_feed_linkget_search_comments_feed_linkprevious_comments_linkget_comments_linkis_comment_feed
引入
2.8.0
棄用
-

post_comments_feed_link_html。這個鉤子允許你修改文章評論的連結的HTML。你可以使用這個鉤子來新增自定義屬性,改變顯示文字,或完全改變HTML。

過濾後評論feed連結錨標記。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );

常見問題

FAQs
檢視更多 >