apply_filters( 'pre_delete_attachment', WP_Post|false|null $delete, WP_Post $post, bool $force_delete )

Filters whether an attachment deletion should take place.


Parameters

$delete

(WP_Post|false|null) Whether to go forward with deletion. @TODO description

$post

(WP_Post) Post object.

$force_delete

(bool) Whether to bypass the Trash.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes

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