next_comments_link

Displays the link to the next comments page.

Description

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

Parameters (2)

0. $label — Optional. (string) => ''
Label for link text. Default empty.
1. $max_page — Optional. (int)
Max page. Default 0.

Usage

  1. if ( !function_exists( 'next_comments_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/link-template.php'; 
  3.  
  4. // Optional. Label for link text. Default empty. 
  5. $label = ''; 
  6.  
  7. // Optional. Max page. Default 0. 
  8. $max_page = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = next_comments_link($label, $max_page); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/link-template.php  
  1. function next_comments_link( $label = '', $max_page = 0 ) { 
  2. echo get_next_comments_link( $label, $max_page );