WP_REST_Server::set_status( int $code )

Sends an HTTP status code.


Parameters

$code int Required
HTTP status.

Top ↑

Source

File: wp-includes/rest-api/class-wp-rest-server.php. View all references

protected function set_status( $code ) {
	status_header( $code );
}


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.