wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



comment_link › WordPress Function

Desde1.5.0
Obsoleton/a
comment_link ( $comment = null )
Parâmetros:
  • (int|WP_Comment) $comment Optional. Comment object or ID. Defaults to global comment object.
    Required: No
    Padrão: null
Definido em:
Codex:
Log de mudanças:
  • 4.4.0

Displays the link to the comments.



Fonte

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