
如何使用Varying Vagrant Vagrants (VVV) 进行WordPress开发
comments_link ( $deprecated = '', $deprecated_2 = '' )
comments_link: 这个函数生成一个指向文章或页面的评论部分的链接。链接文本显示评论的数量,点击该链接可以让用户进入评论区。
显示当前文章评论的链接。
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() ); }