Created
June 14, 2023 08:41
-
-
Save diviengine/d979ec0f730b9adf0ce391650e68aca3 to your computer and use it in GitHub Desktop.
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
// Increase password reset link expiration time | |
function wpen_increase_password_reset_link_expiration($expiration_time, $user_id, $action) { | |
// Set the desired expiration time in seconds (e.g., 3 days = 259200 seconds) | |
$expiration_time = 259200; // Change this value as per your requirement | |
return $expiration_time; | |
} | |
add_filter('password_reset_expiration', 'wpen_increase_password_reset_link_expiration', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment