Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-25T14:29:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10292 2011-06-25T14:29:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10292&p=21710#p21710 <![CDATA[Re: Level 1 as a free trial level]]> Statistics: Posted by Cristián Lávaque — June 25th, 2011, 2:29 pm


]]>
2011-06-25T10:25:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10292&p=21692#p21692 <![CDATA[Re: Level 1 as a free trial level]]>
Is there a way around this?

Statistics: Posted by DigitalMcGrath — June 25th, 2011, 10:25 am


]]>
2011-06-25T09:23:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10292&p=21687#p21687 <![CDATA[Level 1 as a free trial level]]>
Code:
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!

Statistics: Posted by DigitalMcGrath — June 25th, 2011, 9:23 am


]]>