Form action, form created with mailchimp in wordpress

Viewed 12

I have installed the mailchimp plugin for wordpress on my site. I have created a form in the admin panel. It sends emails to subscribers. It created a link like: https:\link\form-id\subscribe. Now I need to add something like this in the form, when someone subscribes to my form, i need this to execute as well:

        $url_subscribe_service = "my-link";
        $client_subscribe_service = curl_init($url_subscribe_service);
        curl_setopt($client_subscribe_service,CURLOPT_RETURNTRANSFER,true);
        $response_subscribe_service = curl_exec($client_subscribe_service);

But I don't know where to add that on the server, which file ? I thought somewhere inside forms folder from includes, like class-form-listener.php, but it doesn't do nothing, not even die() doesn't execute, so that must be the wrong file. What file executes the generated url/form ?

Can you help me with that, please ? Please excuse my English errors, I am not an English native.

0 Answers
Related