comments_link() – Display the link to the current post comments.

You appear to be a bot. Output may be restricted

Description

Displays the link to the current post comments.

Usage

comments_link( $deprecated, $deprecated_2 );

Parameters

$deprecated
( string ) optional – Not Used.
$deprecated_2
( string ) optional – Not Used.

Returns

void

Source

File name: wordpress/wp-includes/comment-template.php
Lines:

1 to 9 of 9
function comments_link( $deprecated = '', $deprecated_2 = '' ) {
  if ( ! empty( $deprecated ) ) {
    _deprecated_argument( comments_link, '0.72' );
  }
  if ( ! empty( $deprecated_2 ) ) {
    _deprecated_argument( comments_link, '1.3.0' );
  }
  echo esc_url( get_comments_link() );
}
 

 View on GitHub View on Trac