mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix change password email notification
This commit is contained in:
@@ -8,11 +8,13 @@
|
||||
global $ultimatemember;
|
||||
|
||||
$tab = ( get_query_var('um_tab') ) ? get_query_var('um_tab') : 'general';
|
||||
|
||||
|
||||
if ( $_POST['user_password'] && $_POST['confirm_user_password'] ) {
|
||||
$changes['user_pass'] = $_POST['user_password'];
|
||||
|
||||
$args['id'] = um_user('ID');
|
||||
|
||||
add_filter('send_password_change_email','um_send_password_change_email');
|
||||
do_action('send_password_change_email', $args );
|
||||
|
||||
wp_set_password( $changes['user_pass'], um_user('ID') );
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
* Overrides password changed notification
|
||||
*
|
||||
*/
|
||||
add_action('send_password_change_email','um_send_password_change_email');
|
||||
function um_send_password_change_email( $args ){
|
||||
|
||||
global $ultimatemember;
|
||||
|
||||
Reference in New Issue
Block a user