Statistics: Posted by adrianlee — February 27th, 2011, 3:51 am
$myuser_id = wp_create_user( $uname, $password, $remail );
if($myuser_id){
$new_user = new WP_User($myuser_id);
if(ws_plugin__s2member_check_register_access()){$new_user->set_role("s2member_level4");
echo 'You have successfully registered as Paid member :)'; }
else{$new_user->set_role("s2member_level1");
echo 'You have successfully registered as Free Member.. :)';
}
}
Statistics: Posted by geekz — September 25th, 2010, 3:24 am
Statistics: Posted by geekz — September 23rd, 2010, 2:23 pm