Created
December 14, 2022 12:46
-
-
Save AngeliMae/231e6583ff6726e0cc548fcf8517dc0b to your computer and use it in GitHub Desktop.
Use UM Reset Password email when Admin Send Password Reset to User
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'send_retrieve_password_email', 'send_retrieve_password_email_custom', 10, 3 ); | |
| function send_retrieve_password_email_custom( $true, $user_login, $user_data ) { | |
| um_fetch_user( $user_data->ID ); | |
| UM()->user()->password_reset(); | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment