PO::export( bool $include_headers = true )

Exports the whole PO file as a string


Description Description


Parameters Parameters

$include_headers

(bool) (Optional) whether to include the headers in the export

Default value: true


Top ↑

Return Return

(string) ready for inclusion in PO file string for headers and all the enrtries


Top ↑

Source Source

File: wp-includes/pomo/po.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.