Translations::set_header

Advertisement

Summery Summery

Sets $header PO header to $value

Syntax Syntax

Translations::set_header( string $header, string $value )

Description Description

If the header already exists, it will be overwritten

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

Parameters Parameters

$header

(Required) header name, without trailing :

$value

(Required) header value, without trailing n

Source Source

File: wp-includes/pomo/translations.php

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

Advertisement

Advertisement

Leave a Reply