[REQ] Filter for grouped output headers
-
We’d like to display the headers for past and future dates differently when outputting a grouped list of events with
echo EM_Events::output_grouped($args);
Unfortunately we couldn’t find a filter anywhere in classes/em-events.php that we could hook into. It would help greatly if you could add a filter for each of the four output lines (yearly, monthly, weekly, daily).
Current classes/em-events.php line 301:
echo str_replace('#s', date_i18n($format,$event_day_ts), $args['header_format']);
Proposed:
echo apply_filters( 'em_events_grouped_header', str_replace('#s', date_i18n($format,$event_day_ts), $args['header_format']), $event_day_ts, $format, $args );
Could you add this for the next update?
- The topic ‘[REQ] Filter for grouped output headers’ is closed to new replies.