WP_Translation_File::headers │ public │ WP 6.5.0

Returns all headers.

Method of the class: WP_Translation_File{}

No Hooks.

Returns

array<string, string>. Headers.

Usage

$WP_Translation_File = new WP_Translation_File();
$WP_Translation_File->headers(): array;

Changelog

Since 6.5.0 Introduced.

WP_Translation_File::headers() code WP 7.1.2

public function headers(): array {
	if ( ! $this->parsed ) {
		$this->parse_file();
	}
	return $this->headers;
}