wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_link › WordPress Function

Since1.5.0
Deprecatedn/a
comment_link ( $comment = null )
Parameters:
  • (int|WP_Comment) $comment Optional. Comment object or ID. Defaults to global comment object.
    Required: No
    Default: null
Defined at:
Codex:
Change Log:
  • 4.4.0

Displays the link to the comments.



Source

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 ) ) );
}