wpseek.com
A WordPress-centric search engine for devs and theme authors



comments_link › WordPress Function

Since0.71
Deprecatedn/a
comments_link ( $deprecated = '', $deprecated_2 = '' )
Parameters: (2)
  • (string) $deprecated Not Used.
    Required: No
    Default: (empty)
  • (string) $deprecated_2 Not Used.
    Required: No
    Default: (empty)
Defined at:
Codex:

Displays the link to the current post comments.



Source

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