This database has information for all major versions from WP 1.2.1 through 5.7.
|5.5||wp-includes/post.php||5790||View in context||filter|
|5.6||wp-includes/post.php||5915||View in context||filter|
|5.7||wp-includes/post.php||6029||View in context||filter|
We find related hooks using word stems. pre_delete_attachment has 2 significant word stem(s):
attachment. Note that some of the hooks below may not appear in all versions of WP.