[wp-trac] [WordPress Trac] #57436: Add hook to wp_set_password

WordPress Trac noreply at wordpress.org
Thu Jan 12 08:57:08 UTC 2023


#57436: Add hook to wp_set_password
-------------------------------------------------+-------------------------
 Reporter:  tanner m                             |       Owner:  audrasjb
     Type:  feature request                      |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.2
Component:  Users                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-dev-note add-to-     |     Focuses:
  field-guide commit                             |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 I was wondering whether the action should be triggered before or after
 `clean_user_cache()` but your implementation (after) looks like the best
 option, since it's better to clean the cached data before allowing
 operations to plugin authors. They can always re-clean cached data in
 their function, depending on what they are doing with the hook.

 👆 ''Perhaps something worth mentioning in the dev note?''

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57436#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list