PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php
add_action ("ws_plugin__s2member_before_ip_restrictions_ok", "my_function");
function my_function ($vars = array ())
{
if (is_object ($user = new WP_User ($username = $vars["restriction"]))) /* A Username restriction? */
if ($user->has_cap ("s2member_level1")) /* OK. So now, are they at Membership Level #1 ? */
$vars["__refs"]["restriction"] = false; /* Do NOT impose restrictions. */
}
?>
Users browsing this forum: Google [Bot], Yahoo [Bot] and 0 guests