WordPress开发者和主题制作者的搜索引擎



comments_link ›

Since0.71
已弃用n/a
comments_link ( $deprecated = '', $deprecated_2 = '' )
参数: (2)
  • (string) $deprecated Not Used.
    Required: No
    默认: (empty)
  • (string) $deprecated_2 Not Used.
    Required: No
    默认: (empty)
定义在:
文档:

Display the link to the current post comments.



源码

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