bbp_is_single_reply

Viewing a single reply.

Description

bbp_is_single_reply(); 

Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_is_single_reply() { 
  2.  
  3. // Assume false 
  4. $retval = false; 
  5.  
  6. // Edit is not a single reply 
  7. if ( bbp_is_reply_edit() ) 
  8. return false; 
  9.  
  10. // Single and a match 
  11. if ( is_singular( bbp_get_reply_post_type() ) || ( bbp_is_query_name( 'bbp_single_reply' ) ) ) 
  12. $retval = true; 
  13.  
  14. return (bool) apply_filters( 'bbp_is_single_reply', $retval );