-
Notifications
You must be signed in to change notification settings - Fork 16
mc_category_key_array
Joe Dolson edited this page May 15, 2026
·
5 revisions
Filter the array of categories used to generate the category legend in My Calendar.
add_filter(
'mc_category_key_array',
function(
{array} $categories,
{string} $category,
{string} $id
) {
// Your code here.
return $categories;
},
10,
3
);-
{array}$categoriesArray of category objects. -
{string}$categoryThe active categories in the view. Comma-separated string of IDs or category name. -
{string}$idThe calendar view ID.
apply_filters( 'mc_category_key_array', $categories, $category, $id )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 )