pre_delete_post WordPress Filter Hook
The pre_delete_post hook is fired before a post is deleted from the database. This hook can be used to perform any actions before the post is deleted, such as deleting associated data or backups.
apply_filters( 'pre_delete_post', WP_Post|false|null $delete , WP_Post $post , bool $force_delete ) #
Filters whether a post deletion should take place.