This database has information for all major versions from WP 1.2.1 through 6.0.
|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|
|5.8||wp-includes/post.php||6134||View in context||filter|
|5.9||wp-includes/post.php||6364||View in context||filter|
|6.0||wp-includes/post.php||6351||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.