<?php
add_action ("ws_plugin__s2member_during_login_redirect", "my_function");
function my_function ($vars = array ())
{
if (get_user_option ("one_time_offer_displayed", $vars["user_id"]) !== "yes")
{
$one_time_offer_url = "URL GOES HERE";
/**/
update_user_option ($vars["user_id"], "one_time_offer_displayed", "yes");
wp_redirect ($one_time_offer_url);
exit ();
}
}
?>
Statistics: Posted by Jason Caldwell — March 14th, 2011, 8:49 pm
Statistics: Posted by Gayatriom — March 11th, 2011, 10:56 am