I only want to credit affiliates on every purchase brought by referred customers for 1 year. Is it possible unassign the customer from the associated affiliate automatically 1 year after the 1st order is purchased?
If it cannot be configured out-of-box, can you explain how itcan be done programatically? Any filter/hook we can use?
In this topic, it seems that we can remove the relationship of an user to an affiliate in wp_aff_affiliates_users to unassign the user. Is that correct?
Is the first referral time recorded in any table? We are considering using the first order placing time for each user if it is not recorded.
What’s the filter/hook that an affiliate commission is calculated or assigned? Is that good place to detect the expiration and remove the relationship?