wpcf7_enqueue_scripts not Working 5.4
-
Hello.
After updating to 5.4, wpcf7_enqueue_scripts stopped working.
For testing, I put the following code in functions.php, referring to “Loading JavaScript and stylesheet only when it is necessary” on the official website.
add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' ); if ( function_exists( 'wpcf7_enqueue_scripts' ) ) { wpcf7_enqueue_scripts(); } if ( function_exists( 'wpcf7_enqueue_styles' ) ) { wpcf7_enqueue_styles(); }
Then, JS and CSS are loaded in 5.3.2, but not in 5.4 or later.
Best regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wpcf7_enqueue_scripts not Working 5.4’ is closed to new replies.