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.

Top ↑

Parameters Parameters


(bool) Whether BuddyPress should continue or not.


(int) ID of the root activity item being deleted.


(int) ID of the comment being deleted.


(bool) Whether the activity comment has been deleted or not.

Source Source

File: bp-activity/bp-activity-functions.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.5.0 Add the deleted parameter (passed by reference)
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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