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 ] );