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

Append revisions to the reply content


Description Description


Parameters Parameters

$content

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

Default value: ''

$reply_id

(Optional) Reply id


Top ↑

Return Return

(string) Content with the revisions appended


Top ↑

Source Source

File: includes/replies/template.php

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 );

	// Filter & return
	return apply_filters( 'bbp_reply_append_revisions', $content . bbp_get_reply_revision_log( $reply_id ), $content, $reply_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.