Opened 11 years ago
Closed 10 years ago
#29437 closed defect (bug) (invalid)
user_profile_update_errors action: function call priority bug
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9.2 |
Component: | Users | Keywords: | |
Focuses: | administration | Cc: |
Description
The user_profile_update_errors action hook: function call seems to be running after the personal_options_update action hook, which shows an error message even after successful update of the profile. I am checking for a Purchase Code from the Envato API in which the user wants to add a New License. So, for validation purposes I am checking whether the requested Purchase Code is already present in the WP Database. If it is not present, the Envato API will be contacted & if the verification is successful, the license will be added to the Profile with a Success Message else it will throw an Error message. But this doesnt seem to be the case, as when I try adding a valid License, the profile updates first and then it checks for validation which naturally shows an error message(that the purchase code already exists). To verify this issue, I tried defining a global variable inside the personal_options_update action hook function which saves the Envato API response(whether successful or error message) and then used the same global variable inside the user_profile_update_errors action hook function to check if it works fine now. And SURPRISINGLY it did work fine.!
So, I would request you to please check this issue out and provide us with an update asap.
Thanks,
Rohit.
That's right.
Sounds like you need to use profile_update action instead, which runs after
user_profile_update_errors
.