_wp_json_prepare_data


_wp_json_prepare_data ( $data )

Access:
  • private
Parameters:
  • (mixed) $data Native representation.
Returns:
  • (bool|int|float|null|string|array) Data ready for `json_encode()`.
Defined at:

Description

Prepares response data to be serialized to JSON.

This supports the JsonSerializable interface for PHP 5.2-5.3 as well.

Related Functions

wp_prepare_site_data, wp_is_json_request, wp_script_add_data, wp_get_update_data, wp_kses_data

Top Google Results

User discussions

wpseek mobile