bbp_topic_content_append_revisions( string $content = '', int $topic_id )
Append revisions to the topic content
Description Description
Parameters Parameters
- $content
-
(Optional) Content to which we need to append the revisions to
Default value: ''
- $topic_id
-
(Optional) Topic id
Return Return
(string) Content with the revisions appended
Source Source
File: includes/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 ); // Filter & return return apply_filters( 'bbp_topic_append_revisions', $content . bbp_get_topic_revision_log( $topic_id ), $content, $topic_id ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |