Skip to content

mc_save_event

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

Run action when an event is saved.

Auto-generated Example

add_action(
   'mc_save_event',
    function(
        string $action,
        array $data,
        int $event_id,
        int|false $result
    ) {
        // Your code here.
    },
    10,
    4
);

Parameters

  • string $action Current action: edit, copy, add.
  • array $data Data updated.
  • int $event_id Event ID.
  • int|false $result Result of the DB update query.

Files

do_action( 'mc_save_event', $action, $data, $event_id, $result )

← All Hooks

Clone this wiki locally