Skip to content

mc_transition_event

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

Execute an action when an event changes status.

Auto-generated Example

add_action(
   'mc_transition_event',
    function(
        int $prev_event_status,
        int $new_event_status,
        string $action,
        array $update,
        int $event_id
    ) {
        // Your code here.
    },
    10,
    5
);

Parameters

  • int $prev_event_status Previous status.
  • int $new_event_status New status.
  • string $action Action being performed.
  • array $update Submitted event data.
  • int $event_id Event ID.

Files

do_action( 'mc_transition_event', (int) $post['prev_event_status'], $new_event_status, $action, $update, $event_id )

← All Hooks

Clone this wiki locally