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?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Send an array’ is closed to new replies.