Pass $reassign in the delete_user hook
|Reported by:||genkisan||Owned by:|
In the wp_delete_user function, there are 2 do_action hooks
- do_action('delete_user', $id);
- do_action('deleted_user', $id);
The $reassign variable should also be passed along. We can then decide what to do when the admin delete a user by "Delete all posts" or "Attribute all posts to: XYZ".