PO::export

Advertisement

Summery Summery

Exports the whole PO file as a string

Syntax Syntax

PO::export( bool $include_headers = true )

Parameters Parameters

$include_headers

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

Default value: true

Return Return

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

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;
		}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.