WP Webhooks / Docs / fswa_skipped
Action since v1.7.0

fswa_skipped

Fires when a webhook is skipped because its conditions did not pass.

$

/ Signature

do_action( 'fswa_skipped', $trigger, $webhook_id, $reason )

/ When it fires

Fires during the initial dispatch, after condition evaluation fails and after the delivery is logged with a skipped status: for original-mode conditions on every webhook, and for transformed-mode conditions on synchronous webhooks. When a queued job is skipped by the re-check that runs before it is sent, this action does not fire — listen on fswa_delivery_event (skipped) to catch every skip.

/ Parameters

NameInTypeReqDescription
$triggerparamstringyesWordPress action name.
$webhook_idparamintyesWebhook configuration ID.
$reasonparamarray|null—The failed condition rule, or `null` if the reason is unavailable.

/ Examples

Count skipped events in a custom stats table

add_action( 'fswa_skipped', function ( $trigger, $webhook_id, $reason ) {
    global $wpdb;
    $wpdb->query( $wpdb->prepare(
        "INSERT INTO {$wpdb->prefix}my_skip_stats (webhook_id, trigger_name, skipped_at)
         VALUES (%d, %s, NOW())",
        $webhook_id, $trigger
    ) );
}, 10, 3 );

/ Related

Ready

Your next automation is
one sentence away.

$ wp plugin install flowsystems-webhook-actions --activate