Core Function
View Source on Trac ↗ _wp_json_convert_string()
_wp_json_convert_string( mixed $input_string ) Converts a string to UTF-8, so that it can be safely encoded to JSON.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $input_string string | The string which is to be converted. Required |
Return Value
(string)
The checked string.
Function Information
Since Version
4.1.0
Source File
wp-includes/functions.php
Advertisement