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


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!

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.

Get online help with the WP User Integration add-on by creating a support topic in this forum. Offer member pricing with the WP User Integration. WP User Integration documentation.

Status: closed

Updated by  Dean 6 years, 4 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!