• Resolved Lev Zadumkin

    (@lzadumkin)


    Hello! You are incorrectly using the wp_localize_script method in the file includes/form-tag. php:105 to define the wpcf7_utils_url js 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 the wp_add_inline_script method, 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.