delete user hook incomplete?
-
In the wp_delete_user function (in the core) there is a do_action
do_action(‘delete_user’, $id);
When using the delete_user action hook
add_action(‘delete_user’, ‘my_function’);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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘delete user hook incomplete?’ is closed to new replies.