diff --git a/core/um-actions-account.php b/core/um-actions-account.php index 2f933b5b..9764abb1 100644 --- a/core/um-actions-account.php +++ b/core/um-actions-account.php @@ -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') ); diff --git a/core/um-actions-password.php b/core/um-actions-password.php index e37107d5..b69bb2fe 100644 --- a/core/um-actions-password.php +++ b/core/um-actions-password.php @@ -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;