PHP Constants cause errors
-
When using PHP functions that use PHP constants in the function, WP All Import throws an error.
For example, this error: “Unexpected token TEXT” comes from when using:
[str_pad({location_zip[1]}, 5, "0", STR_PAD_LEFT)]
But if I change the constant to the integer value, it works fine. Eg:
[str_pad({location_zip[1]}, 5, "0", 0)]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Constants cause errors’ is closed to new replies.