WordPress at a glance
function is not described

PO::export_headers() public WP 1.0

Exports headers to a PO entry

{} It's a method of the class: PO{}

No Hooks.

Return

String. msgid/msgstr PO entry for this PO file headers, doesn't contain newline at the end

Usage

$PO = new PO();
$PO->export_headers();

Code of PO::export_headers() WP 5.7

<?php
function export_headers() {
	$header_string = '';
	foreach ( $this->headers as $header => $value ) {
		$header_string .= "$header: $value\n";
	}
	$poified = PO::poify( $header_string );
	if ( $this->comments_before_headers ) {
		$before_headers = $this->prepend_each_line( rtrim( $this->comments_before_headers ) . "\n", '# ' );
	} else {
		$before_headers = '';
	}
	return rtrim( "{$before_headers}msgid \"\"\nmsgstr $poified" );
}