Do action before profile is updated?
-
I am really struggling to find out how I can do an action before a user is updated. I have made a function that hooks into the “profile_update” action to do stuff. The nice thing is that this hook fires everywhere when the user is updated. It fires in the admin panel, my account pages of WooCommerce, in the checkout etc.
Now I have gotten to the point where I need to validate something from an API before letting WordPress actually update the data. Is there an action that fires before “profile_update”? I have tried “user_profile_update_errors”, but it only fires in the admin backend.
Do I need to use multiple hooks to get this to work everywhere?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Do action before profile is updated?’ is closed to new replies.