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

(string) (Required) header name, without trailing :

$value

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.