1. Home
  2. For Devs
  3. Filter
  4. WordPress Hooks: Webhook Send Test Data
  1. Home
  2. Plugins
  3. WP Webhooks
  4. For Devs
  5. Filter
  6. WordPress Hooks: Webhook Send Test Data

WordPress Hooks: Webhook Send Test Data

ironikus_demo_{webhook_name}

Description:
This filter allows you to add/manipulate test data based on your needs. The data you add here will be added as an array and send later on as an nencoded json to your specified webhook.

Parameter Type Description
array() array The array of the test data
$webhook timestamp A numeric id for the generated webhook. For example: 19234723
$webhook_group string The name of the group the webhook belongs to
$webhooks[ $webhook ] array The webhook data as an array.

/**
* Setup demo data for a specified webhook
*/
$data = apply_filters( 'ironikus_demo_' . $webhook_callback, array(), $webhook, $webhook_group, $webhooks[ $webhook ] );

Updated on February 16, 2020

Was this article helpful?

Related Articles