previous_comments_link

函式
previous_comments_link ( $label = '' )
引數
  • (string) $label Optional. Label for comments link text. Default empty.
    Required:
    Default: (empty)
定義位置
相關方法
get_previous_comments_linkprevious_posts_linkprevious_post_linkprevious_image_linkget_comments_link
引入
2.7.0
棄用
-

previous_comments_link函式是WordPress的一個函式,用來生成一個文章或頁面上的前一組評論的HTML連結。它通常用在評論區,為使用者提供一個簡單的方法來瀏覽舊的評論。

顯示到先前評論頁面的連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function previous_comments_link( $label = '' ) {
echo get_previous_comments_link( $label );
}
function previous_comments_link( $label = '' ) { echo get_previous_comments_link( $label ); }
function previous_comments_link( $label = '' ) {
	echo get_previous_comments_link( $label );
}

常見問題

FAQs
檢視更多 >