Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-14T13:21:24-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6430 2011-05-14T13:21:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6430&p=15031#p15031 <![CDATA[Re: Hook to filter Custom Registration Field data?]]> Statistics: Posted by Cristián Lávaque — May 14th, 2011, 1:21 pm


]]>
2011-05-14T12:51:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6430&p=15028#p15028 <![CDATA[Re: Hook to filter Custom Registration Field data?]]>
On our site, some members will be clicking the "I agree" button during registration (so this method is fine for them), but other members (who do not use the payment form) will click it sometime after being registered. I have handled those users with a s2m Custom Registration Field.

So I do have all the data (the timestamps), and thus i can pull from either field when displaying data on the front-end. I was just hoping to unify the field used to store it, by putting the timestamp of registration (generated by the payment form) into my "user agreeement" field (the custom reg field), instead of the default "1" that s2m is currently using. No biggie, just thought i'd try, if there was an easy to find/use hook.

Thanks as always!

Statistics: Posted by toddz88 — May 14th, 2011, 12:51 pm


]]>
2011-05-14T10:23:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6430&p=15014#p15014 <![CDATA[Re: Hook to filter Custom Registration Field data?]]>

The registration time is also stored in the database. Isn't it enough to check that since it'll be the same as the User Agreement/TOS acceptance time?

If you go to WP Admin -> Users, you'll see a column named Registration Date, which has date and time of the registration. You can get it from the database and work with it if you need it.

Statistics: Posted by Cristián Lávaque — May 14th, 2011, 10:23 am


]]>
2011-05-14T05:42:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6430&p=15008#p15008 <![CDATA[Hook to filter Custom Registration Field data?]]>
But we need this value to be a TimeStamp (YYYY-mm-dd H:i:s) instead of just "1".

Does anyone know a Filter / Hook I can use to make this change as it's written to the database?

Alternatively, I suppose we could try a hook to change the value in the html form, but of course I prefer to handle it server-side.

Thanks!
Todd

Statistics: Posted by toddz88 — May 14th, 2011, 5:42 am


]]>