I think the problem here is with the documentation that I wrote on this before. I mentioned that you should use a dash "-" if there was no transaction. That's bad advice, because each User must be associated with a unique Subscr. ID, even if there was no transaction. I'm updating the original thread now. Instead of using a dash, please use
time() instead. Sorry for the confusion.
For instance, please try this:- 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 ("n/a", time(), $_SERVER["HTTP_HOST"], "1:2D", false);
wp_redirect($link); exit();
}
}