WPDev.one
Core Function
View Source on Trac ↗

_wp_json_prepare_data()

_wp_json_prepare_data( mixed $value )

Prepares response data to be serialized to JSON.

Parameters 1 required

Name / Type Description
$value
mixed

Native representation.

Required

Return Value

((bool)
| int | float | null | string | array) Data ready for `json_encode()`.

Function Information

Since Version
4.4.0
Source File
wp-includes/functions.php
Advertisement