get_the_comments_pagination()
Retrieves a paginated navigation to next/previous set of comments, when applicable.
Used By: the_comments_pagination()
No Hooks.
Return
String
. Markup for pagination links.
Usage
get_the_comments_pagination( $args );
- $args(array)
Optional.
Default: pagination arguments
-
screen_reader_text(string)
Screen reader text for the nav element.
Default: 'Comments navigation' -
aria_label(string)
ARIA label text for the nav element.
Default: 'Comments' - class(string)
Custom class for the nav element.
Default: 'comments-pagination'
-
Notes
Changelog
Since 4.4.0 | Introduced. |
Since 5.3.0 | Added the aria_label parameter. |
Since 5.5.0 | Added the class parameter. |