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)


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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