get_the_comments_navigation
get_the_comments_navigation ( $args = array() )
Parameters:- (array) args { Optional. Default comments navigation arguments. @type string $prev_text Anchor text to display in the previous comments link. Default 'Older comments'. @type string $next_text Anchor text to display in the next comments link. Default 'Newer comments'. @type string $screen_reader_text Screen reader text for the nav element. Default 'Comments navigation'. @type string $aria_label ARIA label text for the nav element. Default 'Comments'. @type string $class Custom class for the nav element. Default 'comment-navigation'. }
Returns:- (string) Markup for comments links.
Defined at:Change Log: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Retrieves navigation to next/previous set of comments, when applicable.