Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.