函数原型
comments_link( string $deprecated = ”, string $deprecated_2 = ” )
函数描述
Displays the link to the current post comments.
是否弃用
未弃用
函数参数
-
$deprecated
string
Optional - Not Used.
Default:
'' -
$deprecated_2
string
Optional - Not Used.
Default:
''
函数返回值
无
函数位置
File: 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() );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 0.71 | Introduced. |

