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)


Top ↑

Return

(string)


Top ↑

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.