Title: Send an array
Last modified: September 20, 2020

---

# Send an array

 *  Resolved [guicz](https://wordpress.org/support/users/guicz/)
 * (@guicz)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/send-an-array/)
 * Hello
 * I need to send some data of the form in form of an array to the webhook.
 * I think I need to modify the body data with a function and a filter.
 * How can I do this?
 * Tried to do something like this but it gets an error
 * add_filter( ‘ctz_get_data_from_contact_form’, ‘additional_ctz_get_data_from_contact_form’,
   10, 2 );
    function additional_ctz_get_data_from_contact_form( $data, $contact_form){
   $data[ ‘additionalInformation’ ] = [
 *  “key” => “forma”,
    “label” =>  “Forma de simulação”, “valueLabel” => “formadesimulacao”,“
   valueKey” => $_POST[‘shopname’], “interfaceDisplayed”: true ];
 *  return $data;
    }
 * Am I missing something?
    -  This topic was modified 5 years, 6 months ago by [guicz](https://wordpress.org/support/users/guicz/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/send-an-array/#post-13429944)
 * Hi.
 * Seems there’s a typo: `"interfaceDisplayed": true` should be `"interfaceDisplayed"
   => true`
 *  Plugin Author [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/send-an-array/#post-13557113)
 * Hi! Is it solved?
 *  Thread Starter [guicz](https://wordpress.org/support/users/guicz/)
 * (@guicz)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/send-an-array/#post-13558115)
 * Yest it is. You can close it.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Send an array’ is closed to new replies.

 * ![](https://ps.w.org/cf7-to-zapier/assets/icon-256x256.jpg?rev=3214555)
 * [CF7 to Webhook](https://wordpress.org/plugins/cf7-to-zapier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-to-zapier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-to-zapier/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-to-zapier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-to-zapier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-to-zapier/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [guicz](https://wordpress.org/support/users/guicz/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/send-an-array/#post-13558115)
 * Status: resolved