PO::export_entries()publicWP 1.0

Exports all entries to PO format

Method of the class: PO{}

No Hooks.

Return

String. sequence of msgid/msgstr PO strings, doesn't contain a newline at the end

Usage

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

PO::export_entries() code WP 6.5.2

public function export_entries() {
	// TODO: Sorting.
	return implode( "\n\n", array_map( array( 'PO', 'export_entry' ), $this->entries ) );
}