How do I get the user ID of the user that was updated in WordPress?

I want to run a custom function in my plugin that notifies me of the user that’s email has been updated in wordpress backend. But i am not sure how do I get the user ID of that user, since this action hook add_action( ‘update_user’, ‘when_update_user’ ); requires me to pass an user ID to run when_update_user() function when an administrator updates the user data. Does anyone have any idea regarding it?

Read more here:: How do I get the user ID of the user that was updated in WordPress?

Leave a Reply

Your email address will not be published. Required fields are marked *