bbp_delete_topic( $topic_id )
Called before deleting a topic.
Contents
Description Description
This function is supplemental to the actual topic deletion which is handled by WordPress core API functions. It is used to clean up after a topic that is being deleted.
Source Source
File: includes/topics/functions.php
function bbp_delete_topic( $topic_id = 0 ) {
// Validate topic ID
$topic_id = bbp_get_topic_id( $topic_id );
if ( empty( $topic_id ) || ! bbp_is_topic( $topic_id ) ) {
return false;
}
do_action( 'bbp_delete_topic', $topic_id );
}