bbp_get_reply_content

Return the content of the reply.

Description

(string) bbp_get_reply_content( (int) $reply_id = 0 ); 

Returns (string)

Content of the reply

Parameters (1)

0. $reply_id — Optional. (int)
reply id

Usage

  1. if ( !function_exists( 'bbp_get_reply_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4. // Optional. reply id 
  5. $reply_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_reply_content($reply_id); 
  9.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_get_reply_content( $reply_id = 0 ) { 
  2. $reply_id = bbp_get_reply_id( $reply_id ); 
  3.  
  4. // Check if password is required 
  5. if ( post_password_required( $reply_id ) ) 
  6. return get_the_password_form(); 
  7.  
  8. $content = get_post_field( 'post_content', $reply_id ); 
  9.  
  10. return apply_filters( 'bbp_get_reply_content', $content, $reply_id );