You can block certain users from the geolocation service using one of the following functions (or by creating a custom function of your choice):
Add the following code to your function.php file, and replace the XX.XX… and YY.YYY… placeholders with the IPs you want to block.
add_filter('ifso_exclude_from_geo',function($exclude){ $exclude['ip'] = ['XX.XX.XXX.XXX','YY.YYY.YYY.YYY']; return $exclude; });
🗊
add_filter('ifso_exclude_from_geo',function($exclude){ if(!is_user_logged_in()){ $exclude['blockme'] = true; return $exclude; } });
🗊
add_filter('ifso_exclude_from_geo',function($exclude){ if(is_user_logged_in()){ $user = wp_get_current_user(); if ( in_array( 'administrator', (array) $user->roles ) ) { $exclude['blockme'] = true; return $exclude; } } });
🗊