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