Skip to content

Instantly share code, notes, and snippets.

@nikitasinelnikov
Created September 9, 2022 14:58
Show Gist options
  • Save nikitasinelnikov/fc18beef6bbd878d33adbf2fb4b3e699 to your computer and use it in GitHub Desktop.
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
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