Hi, so i added the code, and now users are unable to login to the site at all.
Its probably because I already have some code in s2hacks preventing ip restrictions for level 7 upwards and added the additional code incorrectly.
here is my already existing code, how would I add to it?
<?php
add_filter('ws_plugin__s2member_disable_specific_ip_restriction', 's2hack_disable_certain_ip_restrictions', 10, 2);
function s2hack_disable_certain_ip_restrictions ($bool, $vars) {
if(username_exists($vars['restriction'])) { // Check if this is a Username
$user = new WP_User($vars['restriction']); // This is now a WordPress User Object
if($user->has_cap('access_s2member_level7')) // If User is s2Member Level 7 or higher, don't run IP Restrictions
return true;
}
return false; // If the User doesn't match the needed specifics, then we run IP Restrictions
}
?>
Any idea why and how I can get the site back and running with s2member – maybe I have to install a fresh copy?