WC_API_Server::header( string $key, string $value, boolean $replace = true )

Send a HTTP header


Description Description


Parameters Parameters

$key

(Required) Header key

$value

(Required) Header value

$replace

(Optional) Should we replace the existing header?

Default value: true


Top ↑

Source Source

File: includes/legacy/api/v2/class-wc-api-server.php

	public function header( $key, $value, $replace = true ) {
		header( sprintf( '%s: %s', $key, $value ), $replace );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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