- Code: Select all
add_action("init", "register_level");
function register_level(){
if(isset($_GET["register_level"])){
$link = c_ws_plugin__s2member_register_access::register_link_gen ("none", "-", $_SERVER["HTTP_HOST"], "1:2D", false);
wp_redirect($link); exit();
}
}
When a user registers at /?register_level=1 they are setup as a free subscriber and not level 1. Can someone tell me what I am doing wrong with this code?
Thanks!