Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Last active November 4, 2022 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/c53ec2888219fc89d5ea71f5e0579130 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/c53ec2888219fc89d5ea71f5e0579130 to your computer and use it in GitHub Desktop.
Hook um_after_changing_user_password
<?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