Opened 4 years ago

Closed 4 years ago

#10430 closed defect (bug) (invalid)

Add hooks for edit_user after updating the user's profile

Reported by: neoxx Owned by:
Priority: normal Milestone:
Component: Users Version: 2.8.1
Severity: normal Keywords: profile, user, hook, has-patch
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)

10430.patch (604 bytes) - added by neoxx 4 years ago.
adds two hooks if a user's profile has been updated

Download all attachments as: .zip

Change History (4)

neoxx4 years ago

adds two hooks if a user's profile has been updated

  • 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.

  • 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...

  • Milestone 2.8.2 deleted
  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.