apply_filters( 'bp_attachments_pre_delete_file', bool $value , array $args )
Filters whether or not to handle deleting an existing BuddyPress attachment.
Description Description
If you want to override this function, make sure you return false.
Parameters Parameters
- $value
-
Whether or not to delete the BuddyPress attachment.
- $args
-
Array of arguments for the attachment deletion.
Source Source
File: bp-core/bp-core-attachments.php
Changelog Changelog
Version | Description |
---|---|
2.5.1 | Introduced. |