Tag: escaping

  • WordPress Post Meta and JSON

    WordPress Post Meta and JSON

    Learn about the challenges of storing JSON strings in WordPress post meta. Discover how WordPress’s `wp_unslash()` function can unintentionally interfere with the data. Find out how to safely store JSON by using `wp_slash()` to double-encode it, ensuring data integrity when unslashing.