dribber
Forum Replies Created
-
Hi caimin_nwl
Thanks for the hint.
I was looking into the the class you mentioned. But to be honest I got lost in there :-).There are many function calls for “apply_filters”, but I couldn’t see any hard filtering of users.
I was just wondering, since this is a class, wouldn’t the filter be set in the function call which uses this class?
Again I did some digging but couldn’t find where the overview submission form (the one which is being called without “?action=edit”) is calling the EM_Events class and applies the user filter.Do you know where this is taking place?
Hi caimin_nwl
Thanks for the advise.
I did some digging and I feel like the right point to start with would be here:
/events-manager/tables/events.phpthis is the overview I was referring to before.
It is taking care of listing all events, but unfortunately filtered for the current user.Code responsible for listing the events:
foreach ( $EM_Events as $EM_Event ) { /* @var $EM_Event EM_Event */ $rowno++; $class = ($rowno % 2) ? 'alternate' : ''; // FIXME set to american $localised_start_date = date_i18n(get_option('dbem_date_format'), $EM_Event->start); $localised_end_date = date_i18n(get_option('dbem_date_format'), $EM_Event->end); $style = ""; $today = current_time('timestamp'); $location_summary = "<b>" . esc_html($EM_Event->get_location()->location_name) . "</b><br/>" . esc_html($EM_Event->get_location()->location_address) . " - " . esc_html($EM_Event->get_location()->location_town); ...But I couldn’t see where the filter for “current user” is being applied.
So where is $EM_Events being loaded/prepared/filtered for the front end forms?
And how do I change it to display all events?