This function has been deprecated.

bp_activity_delete_by_content( int $user_id, string $content, string $component, string $type )

Delete an activity item by its content.

Description

You should use bp_activity_delete() instead.

Parameters

$user_id

(int) (Required) The user id.

$content

(string) (Required) The activity id.

$component

(string) (Required) The activity component.

$type

(string) (Required) The activity type.

Return

(bool) True on success, false on failure.

Source

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

	function bp_activity_delete_by_content( $user_id, $content, $component, $type ) {
		return bp_activity_delete( array(
			'user_id'   => $user_id,
			'content'   => $content,
			'component' => $component,
			'type'      => $type
		) );
	}

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.