Translations::set_header()publicWP 1.0

Sets $header PO header to $value

If the header already exists, it will be overwritten

TODO: this should be out of this class, it is gettext specific

Method of the class: Translations{}

No Hooks.

Return

null. Nothing (null).

Usage

$Translations = new Translations();
$Translations->set_header( $header, $value );
$header(string) (required)
header name, without trailing :
$value(string) (required)
header value, without trailing \n

Translations::set_header() code WP 6.4.3

public function set_header( $header, $value ) {
	$this->headers[ $header ] = $value;
}