This filter can be used to filter the flags that are passed into json_encode
when AIOSEO's schema output is JSON encoded.
This filter can prove useful as some users report better SEO performance when non-Latin unicode characters are not escaped.
Please refer to the official PHP documentation for all supported flags.
Parameters (1)
$flags (int)
The flags for the json_encode
function.
Example code snippet
The following code snippet prevents unicode characters from being escaped.
Changelog
Version | Description |
---|---|
4.3.3 | Introduced. |
Implementation
Need help using our code snippets? Checkout our documentation on “How do I use your API code examples?“.
We recommend using the WPCode plugin for safe and secure implementation. WPCode performs multiple sanitization tests before activating the snippets, ensuring the safety of your website.