next_comments_link() WordPress Function

The next_comments_link() function displays a link to the next set of comments, if any are available. This can be useful for paginating comments.

next_comments_link( string $label = '', int $max_page ) #

Displays the link to the next comments page.


Parameters

$label

(string)(Optional) Label for link text.

Default value: ''

$max_page

(int)(Optional) Max page. Default 0.


Top ↑

Source

File: wp-includes/link-template.php

function next_comments_link( $label = '', $max_page = 0 ) {
	echo get_next_comments_link( $label, $max_page );
}


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