Translations::set_header() public WP 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
{} Это метод класса: Translations{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Translations = new Translations(); $Translations->set_header( $header, $value );
- $header(строка) (обязательный)
- header name, without trailing :
- $value(строка) (обязательный)
- header value, without trailing \n
Код Translations::set_header() Translations::set header WP 5.6
function set_header( $header, $value ) {
$this->headers[ $header ] = $value;
}