mc_category_list - joedolson/my-calendar GitHub Wiki

Filter the categories available in a category selection interface.

Auto-generated Example

add_filter(
   'mc_category_list',
    function(
        array $cats,
        object|false|int|null|array $data
    ) {
        // Your code here.
        return $cats;
    },
    10,
    2
);

Parameters

  • array $cats Array of categories.
  • object|false|int|null|array $data object with event_category value, empty value, or a category ID.

Returns

array

Files

apply_filters( 'mc_category_list', $cats, $data )

← All Hooks