comments_link_feed() WordPress Function
The comments_link_feed() function displays a link to the post's comments feed in the post's meta data. This function is useful for sites that have post comment feeds enabled.
comments_link_feed() #
Outputs the link to the comments for the current post in an xml safe way
Source
File: wp-includes/feed.php
function comments_link_feed() { /** * Filters the comments permalink for the current post. * * @since 3.6.0 * * @param string $comment_permalink The current comment permalink with * '#comments' appended. */ echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |