wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



comment_link › WordPress Function

Da1.5.0
Deprecaton/a
comment_link ( $comment = null )
Parametri:
  • (int|WP_Comment) $comment Optional. Comment object or ID. Defaults to global comment object.
    Richiesto: No
    Default: null
Definito a:
Codex:
ChangeLog:
  • 4.4.0

Displays the link to the comments.



Sorgenti

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