setting WPCF7_LOAD_JS (false) not working
-
Hi
WordPress: 5.5.3
Theme: Storefront 2.7.0
CF7: 5.3I have issues (and i don’t know where they come from) when using my contact form (for 3 weeks now). The spinning wheel is there forever and no mail is sent.
I am using the “WP SMTP 1.2.1”
Anyway, i wanted to set the constant WPCF7_LOAD_JS to false so i added in my functions.php
define( ‘WPCF7_LOAD_JS’, false);
It didn’t work so i set it in wp-config.php but it didn’t work either.
The only possibility to make it work (and mails are sent) is to modify
wp-content/plugins/contact-form-7/wp-contact-form-7.php/*if ( ! defined( ‘WPCF7_LOAD_JS’ ) ) {
define( ‘WPCF7_LOAD_JS’, true );
}*/define( ‘WPCF7_LOAD_JS’, false);
What am i doing wrong here? I thought it can also be enabled/disabled using functions.php (i don’t want to change the source code).
Best,
Thomas
The topic ‘setting WPCF7_LOAD_JS (false) not working’ is closed to new replies.