apply_filters( 'bp_attachments_pre_delete_file', bool $value )

Filters whether or not to handle deleting an existing BuddyPress attachment.

Description

If you want to override this function, make sure you return false.

Parameters

$value

Whether or not to delete the BuddyPress attachment. `
* @param array $args Array of arguments for the attachment deletion.

Source

File: bp-core/bp-core-attachments.php

Changelog

Changelog
Version Description
BuddyPress 2.5.1 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.