comments_link

Display the link to the current post comments.

Description

comments_link( (string) $deprecated = '', (string) $deprecated_2 = '' ); 

Parameters (2)

0. $deprecated — Optional. (string) => ''
The deprecated.
1. $deprecated_2 — Optional. (string) => ''
The deprecated 2.

Usage

  1. if ( !function_exists( 'comments_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // The deprecated. 
  5. $deprecated = ''; 
  6.  
  7. // The deprecated 2. 
  8. $deprecated_2 = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = comments_link($deprecated, $deprecated_2); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function comments_link( $deprecated = '', $deprecated_2 = '' ) { 
  2. if ( !empty( $deprecated ) ) 
  3. _deprecated_argument( __FUNCTION__, '0.72' ); 
  4. if ( !empty( $deprecated_2 ) ) 
  5. _deprecated_argument( __FUNCTION__, '1.3.0' );