BBP_BuddyPress_Activity::topic_delete( int $topic_id )
Delete the activity stream entry when a topic is spammed, trashed, or deleted
Description Description
Parameters Parameters
- $topic_id
-
(Required)
Source Source
File: includes/extend/buddypress/activity.php
public function topic_delete( $topic_id = 0 ) { // Get activity ID, bail if it doesn't exist $activity_id = $this->get_activity_id( $topic_id ); if ( ! empty( $activity_id ) ) { return bp_activity_delete( array( 'id' => $activity_id ) ); } return false; }