Opened 15 years ago
Closed 15 years ago
#10430 closed defect (bug) (invalid)
Add hooks for edit_user after updating the user's profile
Reported by: | neoxx | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8.1 |
Component: | Users | Keywords: | profile, user, hook, has-patch |
Focuses: | Cc: |
Description
i have public authors' pages including the users' url to give them some link love. - to avoid links to spam-pages, i wanted to monitor my users' changes on their urls' by sending a mail after a user has updated his/her profile.
afaik there's no possibility to fire an action AFTER a user's profile has been updated. - the attached patch adds this functionality.
Attachments (1)
Change History (4)
#1
@
15 years ago
- Milestone 2.8.2 deleted
- Resolution set to invalid
- Status changed from new to closed
edit_user() et al contain those two hooks (with different names) already.
#2
@
15 years ago
- Milestone set to 2.8.2
- Resolution invalid deleted
- Status changed from closed to reopened
well, if you speak about
do_action('personal_options_update', $user_id);
and
do_action('edit_user_profile_update', $user_id);
these hooks are executed before the actual update occurs. - thus, if you implement one of them, it will return the user's old metadata, in my case his/her previous set url...
Note: See
TracTickets for help on using
tickets.
adds two hooks if a user's profile has been updated