/** * Return the revision count of the reply * * @since bbPress (r2782) * * @param int $reply_id Optional. Reply id * @param boolean $integer Optional. Whether or not to format the result * @uses bbp_get_reply_revisions() To get the reply revisions * @uses apply_filters() Calls 'bbp_get_reply_revision_count' * with the revision count and reply id * @return string reply revision count */ function bbp_get_reply_revision_count($reply_id = 0, $integer = false) { $count = (int) count(bbp_get_reply_revisions($reply_id)); $filter = true === $integer ? 'bbp_get_reply_revision_count_int' : 'bbp_get_reply_revision_count'; return apply_filters($filter, $count, $reply_id); }
/** * Return the revision count of the reply * * @since bbPress (r2782) * * @param int $reply_id Optional. Reply id * @uses bbp_get_reply_revisions() To get the reply revisions * @uses apply_filters() Calls 'bbp_get_reply_revision_count' * with the revision count and reply id * @return string reply revision count */ function bbp_get_reply_revision_count($reply_id = 0) { return apply_filters('bbp_get_reply_revisions', count(bbp_get_reply_revisions($reply_id)), $reply_id); }