Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:51
Show Gist options
  • Save yuriinalivaiko/1448ccee5d3984c2cb838722c1f01089 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/1448ccee5d3984c2cb838722c1f01089 to your computer and use it in GitHub Desktop.
Hook um_change_password_errors_hook
<?php
/**
* Hook: um_change_password_errors_hook
*
* Type: action
*
* Description: Fires on change password form submit.
* Used in the core to process changing password validation.
* May be used to extend changing password validation.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L406
* @link https://docs.ultimatemember.com/article/1077-umchangepassworderrorshook
*
* @package um\core
* @see um\core\Password::form_init()
* @see um\core\Password::um_change_password_errors_hook()
* @since 2.0
* @version 3.0
*
* @param array $post Submitted data.
*/
function my_change_password_errors( $post ) {
// your code here.
}
add_action( 'um_change_password_errors_hook', 'my_change_password_errors', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment