Created
May 7, 2021 11:39
-
-
Save elliottmangham/ff4873df668d23302bf6f7f758262db0 to your computer and use it in GitHub Desktop.
WPMU Defender: Whitelist IPs
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
// Use if member is locked out by Defender (add to /wp-content/mu-plugins/ | |
add_filter( 'ip_lockout_default_whitelist_ip', function ( $ips ) { | |
$ip = 'YOUR IP HERE'; | |
$ips[] = $ip; | |
return $ips; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment