Skip to content

mc_category_key_array

github-actions[bot] edited this page Jun 3, 2026 · 5 revisions

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 $categories Array of category objects.
  • string $category The active categories in the view. Comma-separated string of IDs or category name.
  • string $id The calendar view ID.

Files

apply_filters( 'mc_category_key_array', $categories, $category, $id )

← All Hooks

Clone this wiki locally