WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_delete_attachment

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 6396 /**
* Filters whether an attachment deletion should take place.
*
* @since 5.5.0
*
* @param WP_Post|false|null $delete Whether to go forward with deletion.
* @param WP_Post $post Post object.
* @param bool $force_delete Whether to bypass the Trash.
*/

Hook Parameters

Parameter Type Name Description
WP_Post|false|null $delete Whether to go forward with deletion.
WP_Post $post Post object.
bool $force_delete Whether to bypass the Trash.