get_previous_comments_link

函数


get_previous_comments_link ( $label = '' )
参数
  • (string)
    $label
    Optional. Label for comments link text. Default empty.
    Required:
    Default: (empty)
返回值
  • (string|void) HTML-formatted link for the previous page of comments.
定义位置
  • wp-includes/link-template.php
    , line 3088
引入
2.7.1
弃用

Retrieves the link to the previous comments page.

function get_previous_comments_link( $label = '' ) {
	if ( ! is_singular() ) {
		return;
	}

	$page = get_query_var( 'cpage' );

	if ( (int) $page ' . preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&$1', $label ) . '';
}