bbp_trash_topic( $topic_id )
Called before trashing a topic
Contents
Description Description
This function is supplemental to the actual topic being trashed which is handled by WordPress core API functions. It is used to clean up after a topic that is being trashed.
Source Source
File: includes/topics/functions.php
function bbp_trash_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_trash_topic', $topic_id ); }