WordPress at a glance
function is not described

PO::export() public WP 1.0

Exports the whole PO file as a string

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

No Hooks.


String. ready for inclusion in PO file string for headers and all the enrtries


$PO = new PO();
$PO->export( $include_headers );
whether to include the headers in the export

Code of PO::export() WP 5.7

function export( $include_headers = true ) {
	$res = '';
	if ( $include_headers ) {
		$res .= $this->export_headers();
		$res .= "\n\n";
	$res .= $this->export_entries();
	return $res;