Action hook for user deletions?
|Reported by:||Fredster||Owned by:||anonymous|
One of my plugins (Private Notes) maintains tables of notes and folders in the database on a per-user basis. When a registered user is deleted, there's no real way for my plugin to know that it's happened, so I had to hack out a function that's basically a "delete from the notes and folders tables where owners exist that don't also exist in the wpdb->users table."
It works, but it seems like it'd be smoother if there were a 'delete_user' hook, so I could just stick in an 'add_action' call and have the hook call my function, passing in the ID of the user being deleted.
This ticket is being entered at the request of MarkJaquith on #wordpress.