Wrong use of wp_localize_script, array expected but string is passed
-
Hello! You are incorrectly using the
wp_localize_scriptmethod in the fileincludes/form-tag. php:105to define thewpcf7_utils_urljs variable. This causes a php error, because the third parameter is expected by an array, but a string is passed.
Instead, it is better to use thewp_add_inline_scriptmethod, as described in this example
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Wrong use of wp_localize_script, array expected but string is passed’ is closed to new replies.