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

Append revisions to the reply content

Description

Parameters

$content

(Optional) Content to which we need to append the revisions to

Default value: ''

$reply_id

(Optional) Reply id

Return

(string) Content with the revisions appended

Source

File: bp-forums/replies/template.php

743
744
745
746
747
748
749
750
751
752
753
function bbp_reply_content_append_revisions( $content = '', $reply_id = 0 ) {
 
    // Bail if in admin or feed
    if ( is_admin() || is_feed() )
        return $content;
 
    // Validate the ID
    $reply_id = bbp_get_reply_id( $reply_id );
 
    return apply_filters( 'bbp_reply_append_revisions', $content . bbp_get_reply_revision_log( $reply_id ), $content, $reply_id );
}

Changelog

Changelog
Version Description
bbPress (r2782) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.