Skip to content

Instantly share code, notes, and snippets.

@elliottmangham
Created May 7, 2021 11:39
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 elliottmangham/ff4873df668d23302bf6f7f758262db0 to your computer and use it in GitHub Desktop.
Save elliottmangham/ff4873df668d23302bf6f7f758262db0 to your computer and use it in GitHub Desktop.
WPMU Defender: Whitelist IPs
// 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