BBP_BuddyPress_Activity::topic_delete( int $topic_id )
Delete the activity stream entry when a topic is spammed, trashed, or deleted
Description
Parameters
- $topic_id
-
(Required)
Source
File: bp-forums/activity.php
public function topic_delete( $topic_id = 0 ) { // Get activity ID, bail if it doesn't exist if ( $activity_id = $this->get_activity_id( $topic_id ) ) return bp_activity_delete( array( 'id' => $activity_id ) ); return false; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.