Make WordPress Core

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's profile 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)

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

Download all attachments as: .zip

Change History (4)

@neoxx
15 years ago

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

#1 @Denis-de-Bernardy
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 @neoxx
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...

#3 @Denis-de-Bernardy
15 years ago

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