-
Hello,
I’m the author of WP Referral (http://codecanyon.net/item/wordpress-referral-plugin/5393776) and I would like to have a solution in order to integrate UserPro with WP Referral. Many of our customers are requesting this integration.
Basically on user registration we need to have a hidden field referral_id with the value from ref cookie and of course that info should go in user_meta table as meta_key=’referral_id’ with meta_value=$_GET[‘ref’].
Thank you for your assistance.
Best Regards,
ShannonI agree with this and think it would be amazing if these two plugins could be integrated.
Hi Shannon,
That should be so simple! There are hooks in register do_action(‘userpro_before_fields’, $hook_args); I already use it to post HIDDEN inputs, like nonce. You can use that hook to add a hidden input or any kind of inputs before fields. These fields can later be processed after new registration – there’s another hook that runs when profile is updated (e.g. when someone register, edit profile, etc)
do_action(‘userpro_profile_update’, $form, $user_id);
These 2 hooks allow you to connect any custom fields 🙂 referral id could be just one example.
I’ll give it a try.
Another question. In this manner should I try with Facebook login also?
When someone log in with Facebook and there is a ref cookie, the user must be saved with referral id…There’s another hook that runs whenever a new user get approved.
Here it’s
do_action(‘userpro_after_new_registration’, $user_id);
Thank you.
We’ve updated our plugin to work with UserPro.
http://markessence.com/blog/demo/wp-referral/
You must be logged in to reply to this topic.