comment_link() WP 1.0
Display the link to the comments.
Works based on: get_comment_link()
1 time = 0.053325s = extremely slow | 50000 times = 9.37s = fast
Hooks from the function
Return
Null. Nothing.
Usage
comment_link( $comment );
- $comment(int/WP_Comment)
- Comment object or ID.
Default: global comment object
Changelog
Since 1.5.0 | Introduced. |
Since 4.4.0 | Introduced the $comment argument. |
Code of comment_link() comment link WP 5.6
function comment_link( $comment = null ) {
/**
* Filters the current comment's permalink.
*
* @since 3.6.0
*
* @see get_comment_link()
*
* @param string $comment_permalink The current comment permalink.
*/
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );
}Related Functions
From tag: Comments
- comments_template()
- get_comment_author()
- get_comment_author_link()
- get_comment_author_url()
- get_comment_excerpt()
- get_comment_link()
More from tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- build_query()
- content_url()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_post_embed_url()
- get_post_permalink()
- get_post_type_archive_link()
- get_privacy_policy_url()
- get_rest_url()