0

So I'm trying to create email notifications to certain users to update them on updates to user profiles. I'd like to send these users the profiles that were updated, and also which user made these updates. Sometimes administrator-level users may make changes to other user profiles. I know I can hook into the profile_update to send emails when an profile is updated, but the big question is how to get information on who made these profile updates?

Any suggestions on how to do this would be appreciated.

Thank you

1 Answer 1

0

wp_get_current_user used inside your hook callback should tell you who is making the edit.

$editing_user = wp_get_current_user();

Without code, that is all I've got.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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