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: ''
Source
File: wp-includes/link-template.php
function previous_comments_link( $label = '' ) { echo get_previous_comments_link( $label ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |