comments_link
Display the link to the current post comments.
Description
Parameters (2)
- 0. $deprecated — Optional. (string) =>
''
- The deprecated.
- 1. $deprecated_2 — Optional. (string) =>
''
- The deprecated 2.
Usage
if ( !function_exists( 'comments_link' ) ) { require_once ABSPATH . WPINC . '/comment-template.php'; } // The deprecated. $deprecated = ''; // The deprecated 2. $deprecated_2 = ''; // NOTICE! Understand what this does before running. $result = comments_link($deprecated, $deprecated_2);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/comment-template.php
- function comments_link( $deprecated = '', $deprecated_2 = '' ) {
- if ( !empty( $deprecated ) )
- _deprecated_argument( __FUNCTION__, '0.72' );
- if ( !empty( $deprecated_2 ) )
- _deprecated_argument( __FUNCTION__, '1.3.0' );
- echo esc_url( get_comments_link() );
- }