#1719 closed defect (bug) (fixed)
Action hook for user deletions?
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 1.6 |
| Component: | Administration | Keywords: | hooks |
| Focuses: | Cc: |
Description
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Don't hate me... I went to go look into making a patch for this, and it's already in WP 1.6! :-)
{{
}}