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 after condition evaluation fails, before the log entry is written. The event is still logged with a `skipped` status.

/ Parameters

NameInTypeReqDescription
$triggerparamstringyesWordPress action name.
$webhook_idparamintyesWebhook configuration ID.
$reasonparamarray|nullThe 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

Stop losing webhooks.
Start logging them.

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