At that point in the code, you’ll either have an EE_Registration object within $registration or it’ll be null.
You mentioned payment status in your previous thread, but I would actually recommend using the registration status. If a registration has a status of ‘Approved’ it applies to your sold values, which means even if you’ve manually Approved someone without a payment status, they would work with the above setup.
The support post ‘How do I check if a user has paid for the event?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.