Statistics: Posted by Cristián Lávaque — July 27th, 2011, 1:57 am
<?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. */
}
?>
Statistics: Posted by Jason Caldwell — April 12th, 2011, 7:17 pm
Statistics: Posted by phenotype — April 11th, 2011, 9:45 am
Statistics: Posted by Cristián Lávaque — March 27th, 2011, 5:15 pm