bbp_replies

Whether there are more replies available in the loop.

Description

(object) bbp_replies(); 

Returns (object)

Replies information


Usage

  1. if ( !function_exists( 'bbp_replies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_replies(); 
  7.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_replies() { 
  2.  
  3. // Put into variable to check against next 
  4. $have_posts =bbpress)->reply_query->have_posts(); 
  5.  
  6. // Reset the post data when finished 
  7. if ( empty( $have_posts ) ) 
  8. wp_reset_postdata(); 
  9.  
  10. return $have_posts;