Pass $affiliate_id and $user_id to new hook