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)


Top ↑

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;
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.