Skip to content

mc_post_add_category

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

Execute action after inserting a new category into the My Calendar database.

Auto-generated Example

add_action(
   'mc_post_add_category',
    function(
        array $add,
        int $cat_id,
        string $category
    ) {
        // Your code here.
    },
    10,
    3
);

Parameters

  • array $add Category data array used for DB insert.
  • int $cat_id ID of new category.
  • string $category Original array sent to function.

Files

do_action( 'mc_post_add_category', $add, $cat_id, $category )

← All Hooks

Clone this wiki locally