I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Customize referral system

dashed-slug.net Forums Faucet extension support Customize referral system Reply To: Customize referral system


There is no easy way to do this.

You could hook into whatever event you are interested in rewarding, then use get_user_meta to retrieve the referrer id. Finally, use the move action to transfer coins from one account to another.

If you are going to reward users for logging in you must rate-limit this somehow, otherwise your users will be logging in constantly. I would store the last login timestamp in another user meta and check if some time has elapsed.

kind regards