Support

Home Forums WP User Integration Event Member Only Status in CPT?

Event Member Only Status in CPT?

Posted: March 11, 2014 at 3:07 pm

Viewing 2 reply threads


Ozzy Rodriguez

March 11, 2014 at 3:07 pm

I’m using the multiple registration add-on as well as the member integration add-on and would like to be able to check for members only registration when set in the event page, even if registration is required for all events.

Any help?


Ozzy Rodriguez

March 11, 2014 at 3:40 pm

I was able to figure this out by doing this:

$ee_get_post_id = get_the_ID();
$ee_event_id = get_post_meta( $ee_get_post_id, event_id, true );
$ee_event = espresso_get_event($ee_event_id);

then i was able to check for members only by adding this:
$members_only = $ee_event->member_only;
if ( $members_only === ‘N’ ) *if i wanted to check to see if it wasn’t a members only event


Dean

March 12, 2014 at 2:34 am

I’m glad you found a solution and thanks for posting it!

Viewing 2 reply threads

The support post ‘Event Member Only Status in CPT?’ 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