WP_HTTP_Response::jsonSerialize

SummerySummery

Retrieves the response data for JSON serialization.

Syntax

WP_HTTP_Response::jsonSerialize()

DescriptionDescription

It is expected that in most implementations, this will return the same as get_data(), however this may be different if you want to do custom JSON data handling.

ReturnReturn

(mixed) Any JSON-serializable value.

SourceSource

File: wp-includes/class-wp-http-response.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top