Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-10T09:09:27-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14900 2011-09-10T09:09:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14900&p=34493#p34493 <![CDATA[Re: Accessing custom values + custom registration on signup]]>
thanks for the feedback... I was quick hacking on a live site, so didn't want to print_r. We have a test environment in place now, so will do that.

It's part of a workflow where we want to redirect to different pages (and do some processing - vote counting) depending on the route they took to initiate their registration.

Cheers, Roger

Statistics: Posted by 21inspired — September 10th, 2011, 9:09 am


]]>
2011-09-09T19:01:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14900&p=34426#p34426 <![CDATA[Re: Accessing custom values + custom registration on signup]]>
Code:
<?php
add_action 
("ws_plugin__s2member_during_configure_user_registration", "my_function");
function my_function ($vars = array ())
    {
        $cv1 = $vars["cv"][1];
        print_r($vars); // for a full list during tests.
    }
?>

Statistics: Posted by Jason Caldwell — September 9th, 2011, 7:01 pm


]]>
2011-09-07T04:19:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14900&p=34208#p34208 <![CDATA[Accessing custom values + custom registration on signup]]>
Is the ws_plugin__s2member_during_configure_user_registration hook the best place to do this?

What index do I need into the vars array to access:

1. The CV values (is it just $vars['cv1']) ?
2. Custom registration fields (is it just $vars['fieldID]?

Thanks, Roger

Statistics: Posted by 21inspired — September 7th, 2011, 4:19 am


]]>