如何发送此数据

I'm terribly lost. I have to do a webhook in order to catch the informations enter by the user in a Formidable forms (in WordPress).

I make, with the help of stackoverflow, a JQUERY script to retrieve the input informations (name of the input, and label). This script create an array before submitting the form.

$( document ).ready(function(){
    var itemMetaArray = {};

    $('.frm_pro_form :input:not(:hidden, :submit)').each(function() {
        var label = $(this).closest('.frm_form_field').find('label').text().trim();
        itemMetaArray[label] = $(this).attr('name');
    });

    console.log(itemMetaArray);

    $.ajax({
        type: "POST",
        url: "index.php",
        data: { itemMetaArray: itemMetaArray},
        success: function(){
            console.log('Success');
        }
    });
});

Now my problem is : How I can process the forms data in a distant php script after form submitting ?

The array created by JQUERY will help me for processing data, in order to know which input is related with what ? (the name of the inputs are disgusting, and I can't modify them)

Thanks in advance

for AJAX with Wordpress, you should follow the codex at https://codex.wordpress.org/AJAX_in_Plugins.

Briefly, you need to do three things: 1) Define a callback function in PHP to handle the AJAX request 2) Add a variable named 'action' to the 'data' field in your AJAX request. 3) Add two actions in your plugin or in the functions.php file as shown below. The first parameter should be wp_ajax_[name of action] and wp_ajax_nopriv_[name of action]. The second parameter should be the name of the callback function from step 1.

add_action( 'wp_ajax_my_action', 'my_action_callback' );
add_action( 'wp_ajax_nopriv_my_action', 'my_action_callback' );

There are other guidelines to follow for the callback function. Refer to the codex for those.

you can simply access it by-

$labelname1=$_POST['itemMetaArray']['label1'];
$labelname2=$_POST['itemMetaArray']['label2'];