-
Notifications
You must be signed in to change notification settings - Fork 16
mc_time_toggle_html
github-actions[bot] edited this page May 15, 2026
·
5 revisions
Filter the HTML for the time format switcher in navigation elements.
add_filter(
'mc_time_toggle_html',
function(
{string} $toggle,
{string} $format,
{string} $time
) {
// Your code here.
return $toggle;
},
10,
3
);-
{string}$toggleHTML output for control. -
{string}$formatCurrent view format. -
{string}$timeCurrent time frame.
{string}
apply_filters( 'mc_time_toggle_html', $toggle, $format, $time )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 )