Support

Home Forums Event Espresso Premium Get Event ID

Get Event ID

Posted: August 22, 2014 at 11:51 am

Viewing 1 reply thread


Shelomo Dobkin

August 22, 2014 at 11:51 am

Hi,

I created a custom gateway and I’m trying to get custom meta box data when I process the payment (in the process_payment_start function) How can I get the events id (the post id) so I can access the meta data (get_post_meta)

Thanks,
Shelomo


Shelomo Dobkin

August 22, 2014 at 1:24 pm

OK, I found it:


$primary_registrant = $transaction->primary_registration();
$primary_registrant->event()->ID();
Viewing 1 reply thread

The support post ‘Get Event ID’ 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.

Event Espresso