Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@paulgoodchild
Last active February 19, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgoodchild/870d8b6805662b0de6c75ed1966385ae to your computer and use it in GitHub Desktop.
Save paulgoodchild/870d8b6805662b0de6c75ed1966385ae to your computer and use it in GitHub Desktop.
Increase Shield Security's 2FA timeout
<?php
/**
* Shield Security's 2FA timeout defaults to 5 minutes. This means that a user must
* supply their 2FA code(s) within this time or they'll need to start again (re-login).
*
* Some email providers can be a bit slow at times with their email delivery, and
* 5 minutes isn't long enough. To provide a bit more time, you can use a filter to
* extend the timeout to as many minutes as you need.
*
* Reference: https://support.getshieldsecurity.com/support/solutions/articles/3000101220
*/
add_filter( 'icwp-wpsf-login_intent_timeout', function () {
return 10; // minutes. default: 5.
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment