PO::export()
Exports the whole PO file as a string
Метод класса: PO{}
Хуков нет.
Возвращает
Строку
. ready for inclusion in PO file string for headers and all the enrtries
Использование
$PO = new PO(); $PO->export( $include_headers );
- $include_headers(true|false)
- whether to include the headers in the export
По умолчанию: true
Код PO::export() PO::export WP 6.4.3
public function export( $include_headers = true ) { $res = ''; if ( $include_headers ) { $res .= $this->export_headers(); $res .= "\n\n"; } $res .= $this->export_entries(); return $res; }