WP_Translation_File::headers()publicWP 6.5.0

Returns all headers.

Method of the class: WP_Translation_File{}

No Hooks.

Return

Array. 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 6.7.1

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