Fix change password email notification

This commit is contained in:
Champ Camba
2017-06-06 13:26:11 +08:00
parent 460027b740
commit dfdf9901be
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -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') );
+1
View File
@@ -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;