Statistics: Posted by antseo — September 21st, 2011, 11:59 pm
Statistics: Posted by Bruce C — September 21st, 2011, 7:56 pm
Statistics: Posted by antseo — September 16th, 2011, 6:52 pm
Statistics: Posted by antseo — September 16th, 2011, 5:48 pm
Statistics: Posted by Bruce C — September 15th, 2011, 10:59 pm
Statistics: Posted by Bruce C — September 14th, 2011, 12:29 am
Statistics: Posted by antseo — September 13th, 2011, 11:52 pm
Statistics: Posted by Bruce C — September 13th, 2011, 11:28 pm
<form action="http://example.com/my-custom-page" method="post" name="regId">
<input type="hidden" name="id" value="%%user_id%%"/>
</form>
<a href="#" onClick="document.regId.submit();return false">To finish the registration process, click here.</a>
<?php
if (!empty($_POST['id']))
{
$user = new WP_User($_POST['id']);
$user->set_role("s2member_level1");
}
else
{
//Regular content
}
?>
Statistics: Posted by Bruce C — September 13th, 2011, 11:27 pm
Statistics: Posted by antseo — September 13th, 2011, 11:24 pm
Statistics: Posted by Bruce C — September 13th, 2011, 11:16 pm
Statistics: Posted by antseo — September 13th, 2011, 11:13 pm
Statistics: Posted by Bruce C — September 13th, 2011, 9:02 pm
Statistics: Posted by antseo — September 13th, 2011, 5:42 pm
$user = new WP_User(wp_get_current_user()->ID);
$user->set_role("s2member_level1");
Statistics: Posted by Bruce C — September 13th, 2011, 10:31 am
Statistics: Posted by antseo — September 12th, 2011, 9:20 pm