Code Reference example error
-
Function reference for update_post_meta
In the section on Character Escaping, the first example incorrectly double-escapes the JSON on line 2 thus:
$escaped_json = ‘{“key”:”value with \\”escaped quotes\\””}’;
It should read:
$escaped_json = ‘{“key”:”value with \”escaped quotes\””}’;
The second example (Workaround) is correct.
- The topic ‘Code Reference example error’ is closed to new replies.