|Tony||# Posted on May 3, 2018 at 2:02 am|
Sure you can, you can use a little function like this: http://www.stumiller.me/sending-output-to-the-wordpress-debug-log/
Add this snippet to your
The write_log function then writes whatever you pass it to
That’s was me and it only applied to the messages system and my example code, to provide more context, the
I’m using your code in WP console and replicating it by pulling in an EE Transaction, then pulling a payment from that transaction so I have the same objects you should have – http://take.ms/ljJNB
That works and emails me the object and event_id – http://take.ms/ZXTzV
I then hooked into
So the code you are using above seems to be working fine?
Which payment method are you using to complete the payment?
When you say it doesn’t work, what is happening? What emails do you receive?