In the wp_delete_user function (in the core) there is a do_action
When using the delete_user action hook
The only information that is passed to my_function, that I can see, is the user_id of the user that is being deleted, is there a way to also get the reassigned user? For instance, if a user is deleted, there is an option to reassign all their post to another user. Is there a way to grab the $reassign user id and put it into that hook?
- The topic ‘delete user hook incomplete?’ is closed to new replies.