eo_get_events_user_is_attending
since 1.2
Pro
eo_get_events_user_is_attending( $user_id )
Get events all future events a user is attending
Example
Get events the current user is attending:
$events = eo_get_events_user_is_attending( get_current_user_id() );
Or you can use eo_get_events() directly. The above is identical to:
$events = eo_get_events(array(
'posts_per_page'=>-1,
'bookee_id' => get_current_user_id(),
'post_type'=>'event',
'supress_filters'=>false,
'orderby'=> 'eventstart',
'order'=> 'ASC',
'showrepeats'=>1,
'group_events_by'=>'',
'event_start_after' => 'now'
8 ));
Parameters
Return value
array
|
Array of events the user is attending
|
Changelog