Translations::set_header
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() Translations::set header WP 6.9.1
public function set_header( $header, $value ) {
$this->headers[ $header ] = $value;
}