Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:50:35+00:00 2026-05-29T10:50:35+00:00

I need your precious help. I’m working hard on organizing a contest linked to

  • 0

I need your precious help. I’m working hard on organizing a contest linked to a wordpress site. That’s the way it should work:

  1. There’s a contest. The user have to register as new user in WP (there’s also the Facebook Connect/Open Graph) to enter the contest.
  2. When a new user register himself, the system sends him an email: “Congratulations! You are a new user. Here there are some invitation codes (or links) to invite your friends. If they register here with the invitation code (or link), you’ll receive a gift”.

How can i do this workflow? I need to generate some codes (or links) every time a new user enter the WP site and assign them (linking those data to the users). I need to know if a new user (called B) comes to my site thanks to another user (called A), in order to give to A a gift.

Thank you guys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:50:36+00:00Added an answer on May 29, 2026 at 10:50 am

    You must make a frontend registration. Then, after user is registered you send him an email like http://www.yourdomain.com/register?uid=his_id(link to te registration form with his id as a parameter).

    The when he passes the link to his friend B, friend B is registering and you check if there’s a $_GET[‘uid’]. It yes you add him a meta containing the id.

    1. To make a front-end registeration, you should check this article.

    2. For mail sending you could use wp_mail() function.

    3. For passing params in the url and accessing you must be familiar with $_GET

    4. For adding a meta for an user you must use the add_user_meta(). function.

    The above steps are not necessarily difficult if you know basic PHP and willing to learn from WordPress codex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help to translate a query into pyes. This query is working
I need your help. This works so far that I will get alerts when
Okay! I really need your help or some tips I need a program that
Need your help to get the max of CAP_PRICE based on certain criteria in
I need your expertise once again. I have a java class that searches a
I need your help, For example I have a decimal type variable and I
I need your help to define a special case in XML schema: A sequence
I need your help. Say I have a code inside a for statement similar
I need your help again :) I'm trying to do a plugin with jQuery
I need your help. I'm trying to install php_apc.dll into my php directory. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.