WP_REST_Server::set_status( int $code )

Sends an HTTP status code.


Parameters Parameters

$code

(int) (Required) HTTP status.


Top ↑

Source Source

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

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


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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