bbp_reply_content_append_revisions

Append revisions to the reply content.

Description

(string) bbp_reply_content_append_revisions( (string) $content = '', (int) $reply_id = 0 ); 

Returns (string)

Content with the revisions appended

Parameters (2)

0. $content — Optional. (string) => ''
Content to which we need to append the revisions to
1. $reply_id — Optional. (int)
Reply id

Usage

  1. if ( !function_exists( 'bbp_reply_content_append_revisions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4. // Optional. Content to which we need to append the revisions to 
  5. $content = ''; 
  6.  
  7. // Optional. Reply id 
  8. $reply_id = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bbp_reply_content_append_revisions($content, $reply_id); 
  12.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_reply_content_append_revisions( $content = '', $reply_id = 0 ) { 
  2.  
  3. // Bail if in admin or feed 
  4. if ( is_admin() || is_feed() ) 
  5. return $content; 
  6.  
  7. // Validate the ID 
  8. $reply_id = bbp_get_reply_id( $reply_id ); 
  9.  
  10. return apply_filters( 'bbp_reply_append_revisions', $content . bbp_get_reply_revision_log( $reply_id ), $content, $reply_id );