Translations::set_header()publicWP 2.8.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

Метод класса: Translations{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Translations = new Translations();
$Translations->set_header( $header, $value );
$header(строка) (обязательный)
header name, without trailing :
$value(строка) (обязательный)
header value, without trailing \n

Список изменений

С версии 2.8.0 Введена.

Код Translations::set_header() WP 6.5.2

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