Skip to content

mc_insert_recurring

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

Short circuit inserting a recurring event. Return true if event should not be inserted.

Auto-generated Example

add_filter(
   'mc_insert_recurring',
    function(
        bool $insert,
        array $data,
        int $id,
        string $context
    ) {
        // Your code here.
        return $insert;
    },
    10,
    4
);

Parameters

  • bool $insert True to skip inserting.
  • array $data Event date info.
  • int $id Event ID.
  • string $context Type of recurring event.

Returns

bool

Files

apply_filters( 'mc_insert_recurring', false, $data, $id, $context )

← All Hooks

Clone this wiki locally