formcierge_webhook_dispatched
Action

Since v1.2.0

Fires after a webhook has been dispatched. The response array contains the HTTP status code and body returned by the endpoint.

Parameters
$url string The webhook endpoint URL.
$response array WP_HTTP response array including status code and body.
$entry_id int The entry ID.
Defined in
includes/Workflow/WebhookAction.php
add_action( 'formcierge_webhook_dispatched', function ( $url, $response, $entry_id ) {
    $code = wp_remote_retrieve_response_code( $response );
    if ( $code !== 200 ) {
        error_log( "Webhook to $url returned HTTP $code for entry $entry_id" );
    }
}, 10, 3 );