apply_filters_ref_array( 'bp_activity_delete_comment_pre', bool $value , int $activity_id , int $comment_id , bool $deleted )
Filters whether BuddyPress should delete an activity comment or not.
Description Description
You may want to hook into this filter if you want to override this function and handle the deletion of child comments differently. Make sure you return false.
Parameters Parameters
- $value
-
Whether BuddyPress should continue or not.
- $activity_id
-
ID of the root activity item being deleted.
- $comment_id
-
ID of the comment being deleted.
- $deleted
-
Whether the activity comment has been deleted or not.
Source Source
File: bp-activity/bp-activity-functions.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Add the deleted parameter (passed by reference) |
1.2.0 | Introduced. |