WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I find out who created / edited / deleted a certain user?

I got a notification email that a new user has been created but I dont have any idea who made it.

share|improve this question

Hook into the actions user_register, profile_update and delete_user, and inspect the current user. Use get_current_user_id() to get the acting user and use …

WP_User::get_data_by( 'id', get_current_user_id() );

… to get more data about the user creating or deleting the other user.

share|improve this answer
Thanks toscho. Problem here is that you can only get the data when they register/update/delete user. How about AFTER they do it? The user has already been created, I just want to know who did the registration. Thanks much! – user20493 Jan 30 '13 at 8:03
You have to create a log. I will release plugin doing exactly this and much more soon. :) – toscho Jan 30 '13 at 8:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.