Last active
November 4, 2022 19:32
-
-
Save yuriinalivaiko/c53ec2888219fc89d5ea71f5e0579130 to your computer and use it in GitHub Desktop.
Hook um_after_changing_user_password
This file contains 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
<?php | |
/** | |
* Hook: um_after_changing_user_password | |
* | |
* Type: action | |
* | |
* Description: Fires after user change the password. | |
* This hook may be used to add cookies or customize redirect. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L644 | |
* @link https://docs.ultimatemember.com/article/1013-umafterchanginguserpassword | |
* | |
* @package um\core | |
* @see um\core\Password::um_change_password_process_hook() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param int $user_id User ID. | |
*/ | |
function my_after_changing_user_password( $user_id ) { | |
// your code here. | |
} | |
add_action( 'um_after_changing_user_password', 'my_after_changing_user_password', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment