next_comments_link

Advertisement

Summery Summery

Displays the link to the next comments page.

Syntax Syntax

next_comments_link( string $label = '', int $max_page )

Parameters Parameters

$label

(Optional) Label for link text.

Default value: ''

$max_page

(Optional) Max page. Default 0.

Source Source

File: wp-includes/link-template.php

	 * @param string $attributes Attributes for the anchor tag.
	 */
	return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>' . preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label ) . '</a>';

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply