bbp_get_topic_revision_count( int $topic_id,  $integer = false )

Return the revision count of the topic

Description

Parameters

$topic_id

(Optional) Topic id

Return

(string) Topic revision count

Source

File: bp-forums/topics/template.php

function bbp_get_topic_revision_count( $topic_id = 0, $integer = false ) {
	$count  = (int) count( bbp_get_topic_revisions( $topic_id ) );
	$filter = ( true === $integer ) ? 'bbp_get_topic_revision_count_int' : 'bbp_get_topic_revision_count';

	return apply_filters( $filter, $count, $topic_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.