Created
September 9, 2022 14:58
-
-
Save nikitasinelnikov/fc18beef6bbd878d33adbf2fb4b3e699 to your computer and use it in GitHub Desktop.
Ultimate Member v3: Reset Password change default 12 hours timeout for flushing password reset attempts
This file contains hidden or 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
function um_001122_config_get( $data, $key ) { | |
if ( 'password_reset_attempts_timeout' === $key ) { | |
// Use any time in seconds. There is using WordPress constant for making timeout = 24hr. Important! Value must be not null and numeric. | |
$data = DAY_IN_SECONDS; | |
} | |
return $data; | |
} | |
add_filter( 'um_config_get', 'um_001122_config_get', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment