Warning: 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 Description

You should use bp_activity_delete() instead.


Parameters Parameters

$user_id

(Required) The user id.

$content

(Required) The activity id.

$component

(Required) The activity component.

$type

(Required) The activity type.


Top ↑

Return Return

(bool) True on success, false on failure.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 This function has been deprecated.
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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