BBP_BuddyPress_Activity::delete_activity( type $args = '' )
Wrapper for deleting Forums actions from BuddyBoss activity stream
Description
Parameters
- $args
-
(Optional) Array of arguments for bp_activity_add()
Default value: ''
Return
(type) Activity ID if successful, false if not
Source
File: bp-forums/activity.php
public function delete_activity( $args = '' ) { // Default activity args $activity = bbp_parse_args( $args, array( 'item_id' => false, 'component' => $this->component, 'type' => false, 'user_id' => false, 'secondary_item_id' => false ), 'delete_activity' ); // Delete the activity bp_activity_delete_by_item_id( $activity ); }
Changelog
Version | Description |
---|---|
bbPress (r3395) | 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.