Contact Form 7 – Secondary language form submission fails

Submitting the form is getting fails. This producess the below console error:
xxxxx/wp-json?lang=es/contact-form-7/v1/contact-forms/XXX/feedback

404 (Not Found)

This issue occurs only when setting the language URL format to “Language name added as a parameter“.

The solution is very simple.

Add this code to the theme’s functions.php file, found in the ../wp-content/themes/theme-name/ folder:

add_filter( 'wpcf7_load_js', '__return_false' );

Thats it 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *