Change password not working
-
Hi there,
the functionality of changing your password in your account-page doesn’t work.
I’ve looked into the class-password.php (plugins/ultimate-member/includes/core/class-password.php) and within the function “um_change_password_process_hook” (line 580) – which needs an user_id and _um_password_change as arguments – but they are not getting POSTed to this function.Even though I pass the arguments over the functions.php with a hook
add_action( 'um_change_password_process_hook', 'my_change_password_process', 10, 1 ); function my_change_password_process( $post ) { $post['user_id'] = get_current_user_id(); $post['_um_password_change'] = 1; return $post; }
Both of the custom arguments won’t appear within the function. Why are they not there in the first place?
I had to add both of the arguments within the function itself, which is kind of a bad practice since I can’t update Ultimate Member anymore.Is there a solution to this?
WordPress Version 5.8.1, Ultimate Member version 2.2.5
- The topic ‘Change password not working’ is closed to new replies.