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

WordPress Trac noreply at wordpress.org
Tue Jan 10 17:59:52 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 changes-requested  |     Focuses:
-----------------------------------------+------------------------

Comment (by audrasjb):

 Thanks for this new patch @tanner-m!

 Looks almost good :)

 Sorry for nitpicking but we have two small things to address before
 committing this, to make sure it's compliant to WordPress Coding
 Standards:

 - Add a period at the end of the short description
 - Put the `@since` mention between the shortdesc and the parameters

 Just like this:
 {{{
 /**
  * Fires after the password is set.
  *
  * @since 6.2.0
  *
  * @param string $password The plain text password just set.
  * @param mixed  $user_id  The ID of the user whose password was just
 reset.
  */
 do_action( 'wp_set_password', $password, $user_id );
 }}}

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


More information about the wp-trac mailing list