comments_link()

最后更新于:2021-11-25 20:37:25

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

Displays the link to the current post comments.

参数

$deprecated

(string) (Optional) Not Used.

Default value: ”

$deprecated_2

(string) (Optional) Not Used.

Default value: ”

源文件

文件: gc-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() );
}