I want to add a function that will run only when a user has purchased a membership upgrade. That is when the member pays for the upgrade, the site gets the success payment info back from the IPN, my function will insert some additional info into a custom database table. I would imagine that I could put this function in with the function that is built in somewhere that tells the site to update the user's membership level in the database when payment has been successful. The problem is, I can't find this. Does anyone know what file contains the code to update the member's membership level upon successful payment for the upgrade?
Thank you.