bbp_topic_content_append_revisions( string $content = '', int $topic_id )
Append revisions to the topic content
Description
Parameters
- $content
-
(Optional) Content to which we need to append the revisions to
Default value: ''
- $topic_id
-
(Optional) Topic id
Return
(string) Content with the revisions appended
Source
File: bp-forums/topics/template.php
function bbp_topic_content_append_revisions( $content = '', $topic_id = 0 ) {
// Bail if in admin or feed
if ( is_admin() || is_feed() )
return;
// Validate the ID
$topic_id = bbp_get_topic_id( $topic_id );
return apply_filters( 'bbp_topic_append_revisions', $content . bbp_get_topic_revision_log( $topic_id ), $content, $topic_id );
}
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.