This function has been deprecated.
bp_activity_delete_for_user_by_component( int $user_id, string $component )
Delete a user’s activity for a component.
Description
You should use bp_activity_delete() instead.
Parameters
- $user_id
-
(Required) The user id.
- $component
-
(Required) The activity component.
Return
(bool) True on success, false on failure.
Source
File: bp-activity/bp-activity-functions.php
function bp_activity_delete_for_user_by_component( $user_id, $component ) { return bp_activity_delete( array( 'user_id' => $user_id, 'component' => $component ) ); }
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.