Filter webhook trigger data

wpwhpro/admin/webhooks/webhook_data

Description:
This filter allows you to manipulate the webhook data that will be send to a certain webhook.

Parameter Type Description
$data array

An array of the currently set data that will be later on the webhook payload.

$response array

An array of the settings if the trigger is valid or not (based on its settings).

$webhook array

The webhook data as it comes from our plugin.

$args array

Custom set http arguments that will be used for performing the wp_safe_remote_request function

$authentication_data array

An array containing the authentication type as auth_type and the authentication data array as data

$data = apply_filters( 'wpwhpro/admin/webhooks/webhook_data', $data, $response, $webhook, $args, $authentication_data );
Updated on March 22, 2020

Was this article helpful?

Related Articles