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.
Return Return
(bool) True on success, false on failure.
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 ) ); }
Changelog Changelog
Version | Description |
---|---|
1.2.0 | This function has been deprecated. |
1.1.0 | Introduced. |