Translations::set_header() WordPress Method

The Translations::set_header() method can be used to set a header for a WordPress page. The header is used to display the title of the page and the date on which the page was last updated.

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


Top ↑

Parameters

$header

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

$value

(string)(Required)header value, without trailing n


Top ↑

Source

File: wp-includes/pomo/translations.php

		public function set_header( $header, $value ) {
			$this->headers[ $header ] = $value;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.