You can customize the basic behavior of this plugin. Put the following code into functions.php
of your theme.
function my_whitelist( $validate ) {
$whitelist = array(
'NL',
);
$validate['result'] = 'blocked';
foreach ( $whitelist as $country ) {
if ( $country === $validate['code'] ) {
$validate['result'] = 'passed';
break;
}
}
return $validate;
}
add_filter( 'ip-geo-block-login', 'my_whitelist' );
add_filter( 'ip-geo-block-admin', 'my_whitelist' );
Try it or open your issue at forum. I’m glad to help you.
Thanks for your commenting and rating!