bbp_trash_forum( $forum_id )
Called before trashing a forum
Description Description
This function is supplemental to the actual forum being trashed which is handled by WordPress core API functions. It is used to clean up after a forum that is being trashed.
Source Source
File: includes/forums/functions.php
function bbp_trash_forum( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); if ( empty( $forum_id ) || ! bbp_is_forum( $forum_id ) ) { return false; } do_action( 'bbp_trash_forum', $forum_id ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |