MO::export_original() WordPress Method
The MO::export_original() method can be used to export the original WordPress database. This is useful for creating a back up of your site, or for moving your site to a new host.
MO::export_original( Translation_Entry $entry ) #
Parameters
- $entry
(Translation_Entry)(Required)
Return
(string)
Source
File: wp-includes/pomo/mo.php
public function export_original( $entry ) { // TODO: Warnings for control characters. $exported = $entry->singular; if ( $entry->is_plural ) { $exported .= "\0" . $entry->plural; } if ( $entry->context ) { $exported = $entry->context . "\4" . $exported; } return $exported; }
Expand full source codeCollapse full source codeView on TracView on GitHub