-
Notifications
You must be signed in to change notification settings - Fork 16
mc_header_navigation
github-actions[bot] edited this page Jun 3, 2026
·
5 revisions
Filter the order in which navigation elements are shown on the top of the calendar.
Insert custom navigation elements by adding a value into the array with a callable function as a value.
E.g. my_custom_nav, that expects the $params array as an argument.
add_filter(
'mc_header_navigation',
function(
array $mc_toporder,
array $used,
array $params
) {
// Your code here.
return $mc_toporder;
},
10,
3
);-
array$mc_toporderArray of navigation elements. -
array$usedArray of all navigation elements in use for this view. -
array$paramsCurrent calendar view parameters.
apply_filters( 'mc_header_navigation', $mc_toporder, $used, $params )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 )