bbp_decrease_user_topic_count( $topic_id )
Helper function used to decrease (by one) the count of topics for a user when a topic is unpublished.
Description Description
Parameters Parameters
- $topic_id
-
(Required)
Source Source
File: includes/users/functions.php
function bbp_decrease_user_topic_count( $topic_id = 0 ) { $user_id = bbp_get_topic_author_id( $topic_id ); return bbp_bump_user_topic_count( $user_id, -1 ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |