get_the_comments_pagination() WP 1.0
Retrieves a paginated navigation to next/previous set of comments, when applicable.
Works based on: _navigation_markup(), paginate_comments_links()
Basis of: the_comments_pagination()
No Hooks.
Return
String. Markup for pagination links.
Usage
get_the_comments_pagination( $args );
- $args(array)
Optional.
-
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'
Default: pagination arguments
-
Notes
- See: paginate_comments_links()
Changelog
Since 4.4.0 | Introduced. |
Since 5.3.0 | Added the aria_label parameter. |
Since 5.5.0 | Added the class parameter. |
Code of get_the_comments_pagination() get the comments pagination WP 5.6
Related Functions
From tag: Navigation pagination
More from tag: Comments
- comment_link()
- comments_template()
- get_comment_author()
- get_comment_author_link()
- get_comment_author_url()
More from category: Comments
- cancel_comment_reply_link()
- comment_author_email_link()
- comment_form()
- comment_form_title()
- comment_id_fields()
- comment_text()
- comment_type()
- comments_link()
- comments_number()
- comments_popup_link()
- get_avatar()
- get_avatar_data()
- get_avatar_url()
- get_cancel_comment_reply_link()
- get_comment()
- get_comment_author_email()
- get_comment_reply_link()
- get_comment_text()
- get_comment_type()
- get_comments()
- get_comments_number()
- get_edit_comment_link()
- get_page_of_comment()
- get_previous_comments_link()
- is_comment_feed()
- is_trackback()
- next_comments_link()
- paginate_comments_links()
- previous_comments_link()
- sanitize_comment_cookies()
- wp_count_comments()
- wp_delete_comment()
- wp_get_current_commenter()
- wp_handle_comment_submission()
- wp_insert_comment()
- wp_list_comments()
- wp_new_comment()
- wp_notify_moderator()
- wp_notify_postauthor()
- wp_set_comment_cookies()
- wp_set_comment_status()
- wp_transition_comment_status()
- wp_update_comment()
- wp_update_comment_count()