-
Notifications
You must be signed in to change notification settings - Fork 16
mc_time_html_values
Joe Dolson edited this page May 15, 2026
·
4 revisions
Filter time and date display values.
add_filter(
'mc_time_html_values',
function(
{array} $times,
{string} $event->occur_begin,
{string} $event->occur_end,
{object} $event
) {
// Your code here.
return $times;
},
10,
4
);-
{array}$timesArray with formattedtime_start,time_end,date_start, anddate_end. -
{string}$event->occur_beginBeginning datetime for this event. -
{string}$event->occur_endEnd datetime for this event. -
{object}$eventEvent object.
{array}
apply_filters( 'mc_time_html_values', $times, $event->occur_begin, $event->occur_end, $event )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )