delete_attachment – action

Fires before an attachment is deleted, at the start of wp_delete_attachment(). 

Parameters

.
( 2.0.0 ) . .
Added
( 5.5.0 ) the `$post` parameter. . . .
( int ) $post_id Attachment ID. . . .
$post
( WP_Post ) Post object. . . .
API Letters: ,

Implementers