previous_comments_link() WordPress Function

The previous_comments_link() function is used to link to the previous set of comments, if available. This is useful for paginating comments. Note that the function outputs the link as an HTML string, so you will need to echo it if you want it to display on the page.

previous_comments_link( string $label = '' ) #

Displays the link to the previous comments page.


Parameters

$label

(string)(Optional) Label for comments link text.

Default value: ''


Top ↑

Source

File: wp-includes/link-template.php

function previous_comments_link( $label = '' ) {
	echo get_previous_comments_link( $label );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More