WP_HTTP_Response::__construct

SummerySummery

Constructor.

Syntax

WP_HTTP_Response::__construct( mixed $data = null, int $status = 200, array $headers = array() )

ParametersParameters

$data

(mixed) (Optional) Response data.

Default value: null

$status

(int) (Optional) HTTP status code.

Default value: 200

$headers

(array) (Optional) HTTP header map.

Default value: array()

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top