This function has been deprecated.

bp_activity_delete_by_item_id( array|string $args = '' )

Delete an activity item by activity id.

Description

You should use bp_activity_delete() instead.

Parameters

$args

(Optional) See BP_Activity_Activity::get for a description of accepted arguments.

Default value: ''

Return

(bool) True on success, false on failure.

Source

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

	function bp_activity_delete_by_item_id( $args = '' ) {

		$r = bp_parse_args( $args, array(
			'item_id'           => false,
			'component'         => false,
			'type'              => false,
			'user_id'           => false,
			'secondary_item_id' => false
		) );

		return bp_activity_delete( $r );
	}

Changelog

Changelog
Version Description
1.2.0 This function has been deprecated.
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.