Uses
| Uses | Description |
|---|---|
| wp-includes/pomo/po.php: PO::export_headers() | Exports headers to a PO entry |
| wp-includes/pomo/po.php: PO::export_entries() | Exports all entries to PO format |
Exports the whole PO file as a string
(bool) (Optional) whether to include the headers in the export
Default value: true
(string) ready for inclusion in PO file string for headers and all the enrtries
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;
}
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/po/export