WordPress at a glance
function is not described

WC_API_Server::send_status() public WC 2.1

Send a HTTP status code

{} It's a method of the class: WC_API_Server{}

No Hooks.

Return

Null. Nothing.

Usage

$WC_API_Server = new WC_API_Server();
$WC_API_Server->send_status( $code );
$code(int) (required)
HTTP status

Changelog

Since 2.1 Introduced.

Code of WC_API_Server::send_status() WC 5.0.0

<?php
public function send_status( $code ) {
	status_header( $code );
}