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.
Shannon5 years, 11 months ago tttwbParticipant
I agree with this and think it would be amazing if these two plugins could be integrated.5 years, 11 months ago adminKeymaster
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…5 years, 11 months ago adminKeymaster
There’s another hook that runs whenever a new user get approved.
do_action(‘userpro_after_new_registration’, $user_id);1 year, 9 months ago henrythienParticipant
Everyone tut for work!
You must be logged in to reply to this topic.