Created
December 14, 2021 18:40
-
-
Save DannyWPWS/d3f780cc53b16014b22489a0e9f8aa11 to your computer and use it in GitHub Desktop.
Update WP 2FA Restrict Access
This file contains 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
// 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