Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:52
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/c2728c2fea7503e3870139d5135e5e81 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/c2728c2fea7503e3870139d5135e5e81 to your computer and use it in GitHub Desktop.
Hook um_change_password_process_hook
<?php
/**
* Hook: um_change_password_process_hook
*
* Type: action
*
* Description: Fires on change password form submit after successful validation.
* Used in the core to process a change password request.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L428
* @link https://docs.ultimatemember.com/article/1080-umchangepasswordprocesshook
*
* @package um\core
* @see um\core\Password::form_init()
* @see um\core\Password::um_change_password_process_hook()
* @since 2.0
* @version 3.0
*
* @param array $post Submitted data.
*/
function my_change_password_process( $post ) {
// your code here.
}
add_action( 'um_change_password_process_hook', 'my_change_password_process', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment