bp_activity_delete_by_activity_id( int $activity_id )

Delete an activity item by activity id.

Description

Parameters

$activity_id

(int) (Required) ID of the activity item to be deleted.

Return

(bool) True on success, false on failure.

Source

File: bp-activity/bp-activity-functions.php

	function bp_activity_delete_by_activity_id( $activity_id ) {
		return bp_activity_delete( array( 'id' => $activity_id ) );
	}

Changelog

Changelog
Version Description
BuddyPress 1.1.0 Introduced.

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.