- %1$s is private and should not be used in themes or plugins directly.
_wp_json_sanity_check ( $data, $depth )
- (mixed) $data Variable (usually an array or object) to encode as JSON.
- (int) $depth Maximum depth to walk through $data. Must be greater than 0.
- (mixed) The sanitized data that shall be encoded to JSON.
- Introduced in WordPress: 4.1.0
- Deprecated in WordPress: —
Perform sanity checks on data that shall be encoded to JSON.