JSON formatting issue for API
-
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)
Viewing 1 replies (of 1 total)
The topic ‘JSON formatting issue for API’ is closed to new replies.