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
Method of the class: Translations{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Translations = new Translations(); $Translations->set_header( $header, $value );
- $header(string) (required)
- header name, without trailing :.
- $value(string) (required)
- header value, without trailing \n.
Changelog
| Since 2.8.0 | Introduced. |
Translations::set_header() Translations::set header code WP 6.9
public function set_header( $header, $value ) {
$this->headers[ $header ] = $value;
}