如何在 wordpress 的联系表 7 中提出 post 请求?

How to make post request in contact form 7 in wordpress?

我安装了 contact form 7 插件。那工作正常。我只想在点击提交按钮时用 JSON 发送 post 请求。我该怎么做?

使用这个

on_sent_ok: "$.ajax({  type: "POST",  url: "https://any-url",data: jsonData,success: function(){}})"

应该在一行中。

如果您只是想保存表格中的数据,您可以使用免费的 plug-in:Contact Form CFDB7 by Arshid