comments_link_feed()
Outputs the link to the comments for the current post in an XML safe way.
Hooks from the function
Return
null
. Nothing (null).
Usage
comments_link_feed();
Changelog
Since 3.0.0 | Introduced. |
comments_link_feed() comments link feed code WP 6.5.2
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() ) ); }