WP_HTTP_Requests_Response::set_status( int $code )
Sets the 3-digit HTTP status code.
Description Description
Parameters Parameters
- $code
-
(int) (Required) HTTP status.
Source Source
File: wp-includes/class-wp-http-requests-response.php
public function set_status( $code ) { $this->response->status_code = absint( $code ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |