W3cubDocs

/WordPress

Translations::get_header( string $header ): string|false

Returns a given translation header.

Parameters

$headerstringrequired

Return

string|false Header if it exists, false otherwise.

Source

public function get_header( $header ) {
	return isset( $this->headers[ $header ] ) ? $this->headers[ $header ] : false;
}

Changelog

Version Description
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/translations/get_header