• Can I suggest a fix for this please?

    // Contact form 7 to api plugin fix for JSON formatting
    // Add this to line 472 in includes/class-cf7-api-admin.php
    $template = str_replace(array(“\n”, “\t”, “\r”), ”, $template);

    This should help fix any JSON not getting sent via the API due to line breaks in submitted forms or in the code. This helped me fix an issue and I wanted to share it with you.

Viewing 1 replies (of 1 total)
  • @radethdart
    Encountered same problem; contact form field with line breaks won’t pass on to the API.
    Applied your fix, but doesn’t work for me; if I submit the form, the processing icon keeps spinning endlessly and the form won’t submit at all.
    Any tips?
    Much appreciated.

Viewing 1 replies (of 1 total)

The topic ‘JSON formatting issue for API’ is closed to new replies.