mc_category_key_array - joedolson/my-calendar GitHub Wiki
Filter the array of categories used to generate the category legend in My Calendar.
Auto-generated Example
add_filter(
'mc_category_key_array',
function(
array $categories,
string $category,
string $id
) {
// Your code here.
return $categories;
},
10,
3
);
Parameters
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.
Files
apply_filters( 'mc_category_key_array', $categories, $category, $id )