Sets the 3-digit HTTP status code.
Parameters
$code
intrequired- HTTP status.
Source
public function set_status( $code ) {
$this->response->status_code = absint( $code );
}
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |
Sets the 3-digit HTTP status code.
$code
intrequiredpublic function set_status( $code ) {
$this->response->status_code = absint( $code );
}
Version | Description |
---|---|
4.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.