Search code examples
wordpresspostcontact-form-7

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


I installed contact form 7 plugin. That is working fine. I just want to hit a post request with JSON on click of submit button. How can I do that ?


Solution

  • Use this

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

    It should be in one line.