Created
November 4, 2022 19:21
-
-
Save yuriinalivaiko/cb2109a5bbadd3ce9652b2d3f4960b42 to your computer and use it in GitHub Desktop.
Hook um_before_{$mode}_form_is_loaded in password reset
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_before_{$mode}_form_is_loaded | |
* | |
* Type: action | |
* | |
* Description: Fires before the password reset form is loaded. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L239 | |
* @link https://docs.ultimatemember.com/article/1072-umbeforemodeformisloaded | |
* | |
* @package um\core | |
* @see um\core\Password::ultimatemember_password() | |
* @since 2.0 | |
* @version 3.0 does not used for the password reset form. | |
* | |
* @param array $args Password reset form arguments. | |
*/ | |
function my_before_password_form_is_loaded( $args ) { | |
// your code here. | |
} | |
$mode = 'password'; | |
add_action( "um_before_{$mode}_form_is_loaded", 'my_before_password_form_is_loaded', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment