Skip to content

Instantly share code, notes, and snippets.

@DannyWPWS
Created December 14, 2021 18: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 DannyWPWS/d3f780cc53b16014b22489a0e9f8aa11 to your computer and use it in GitHub Desktop.
Save DannyWPWS/d3f780cc53b16014b22489a0e9f8aa11 to your computer and use it in GitHub Desktop.
Update WP 2FA Restrict Access
// Add to functions.php, reload front-end once to run code then remove.
function wp2fa_update_limit_access() {
$settings = get_option( 'wp_2fa_settings' );
$settings['limit_access'] = false;
update_option( 'wp_2fa_settings', $settings );
}
add_action( 'init', 'wp2fa_update_limit_access' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment