Filters whether an attachment deletion should take place.
Parameters
Source
$check = apply_filters( 'pre_delete_attachment', null, $post, $force_delete );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
Filters whether an attachment deletion should take place.
$check = apply_filters( 'pre_delete_attachment', null, $post, $force_delete );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.