get_the_comments_navigation

SummerySummery

Retrieves navigation to next/previous set of comments, when applicable.

Syntax

get_the_comments_navigation( array $args = array() )

ParametersParameters

$args

(array) (Optional) Default comments navigation arguments.

  • 'prev_text'
    (string) Anchor text to display in the previous comments link. Default 'Older comments'.
  • 'next_text'
    (string) Anchor text to display in the next comments link. Default 'Newer comments'.
  • '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'.

Default value: array()

ReturnReturn

(string) Markup for comments links.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Added the aria_label parameter.
4.4.0 Introduced.
Scroll to Top