Skip to content

Instantly share code, notes, and snippets.

@diviengine
Created June 14, 2023 08:41
Show Gist options
  • Save diviengine/d979ec0f730b9adf0ce391650e68aca3 to your computer and use it in GitHub Desktop.
Save diviengine/d979ec0f730b9adf0ce391650e68aca3 to your computer and use it in GitHub Desktop.
// 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