On this page
Translations::set_header( string $header, string $value )
Sets $header PO header to $value
Description
If the header already exists, it will be overwritten
TODO: this should be out of this class, it is gettext specific
Parameters
$headerstring Required-
header name, without trailing :
$valuestring Required-
header value, without trailing n
Source
File: wp-includes/pomo/translations.php. View all references
public function set_header( $header, $value ) {
$this->headers[ $header ] = $value;
}
Related
Used By
| Used By | Description |
|---|---|
| Gettext_Translations::set_header() wp-includes/pomo/translations.php | |
| Translations::set_headers() wp-includes/pomo/translations.php |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/translations/set_header