_wp_json_sanity_check


_wp_json_sanity_check ( $data, $depth )

Access:
  • private
Parameters:
  • (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.
See:
Returns:
  • (mixed) The sanitized data that shall be encoded to JSON.
Defined at:

Description

Perform sanity checks on data that shall be encoded to JSON.

Related Functions

wp_kses_attr_check, ms_site_check, wp_auth_check, wp_version_check, wp_blacklist_check

Top Google Results

User discussions

wpseek mobile