mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 05:03:33 +09:00
- fixed issue with visible ID. Changed it to the user_login. It's WordPress native logic for reset password links and form;
This commit is contained in:
@@ -1409,9 +1409,19 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
|
||||
/**
|
||||
* Password changed email
|
||||
*
|
||||
* @param null|int $user_id
|
||||
*/
|
||||
function password_changed() {
|
||||
function password_changed( $user_id = null ) {
|
||||
if ( ! empty( $user_id ) ) {
|
||||
um_fetch_user( $user_id );
|
||||
}
|
||||
|
||||
UM()->mail()->send( um_user( 'user_email' ), 'changedpw_email' );
|
||||
|
||||
if ( ! empty( $user_id ) ) {
|
||||
um_reset_user();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user