WP_HTTP_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-response.php
public function set_status( $code ) { $this->status = absint( $code ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |