bbp_insert_reply_update_counts( int $reply_id, int $topic_id, int $forum_id )
Update counts after a reply is inserted via bbp_insert_reply
.
Description Description
Parameters Parameters
- $reply_id
-
(Required) The reply id.
- $topic_id
-
(Required) The topic id.
- $forum_id
-
(Required) The forum id.
Return Return
(void)
Source Source
File: includes/replies/functions.php
function bbp_insert_reply_update_counts( $reply_id = 0, $topic_id = 0, $forum_id = 0 ) { // If the reply is public, update the reply counts. if ( bbp_is_reply_published( $reply_id ) ) { bbp_increase_topic_reply_count( $topic_id ); bbp_increase_forum_reply_count( $forum_id ); // If the reply isn't public only update the reply hidden counts. } else { bbp_increase_topic_reply_count_hidden( $topic_id ); bbp_increase_forum_reply_count_hidden( $forum_id ); } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |