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

Displays the link to the current post comments.

Parameters

$deprecatedstringoptional
Not Used.

Default:''

$deprecated_2stringoptional
Not Used.

Default:''

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

Changelog

VersionDescription
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.