MO::export() WordPress Method

The MO::export() method is a versatile way to export data from WordPress. It can be used to export posts, pages, custom post types, comments, users, and more. The data can be exported in a variety of formats, including XML, JSON, and CSV. The MO::export() method can be used to create backups of your WordPress site, or to move data to a new WordPress installation.

MO::export() #


Return

(string|false)


Top ↑

Source

File: wp-includes/pomo/mo.php

		public function export() {
			$tmp_fh = fopen( 'php://temp', 'r+' );
			if ( ! $tmp_fh ) {
				return false;
			}
			$this->export_to_file_handle( $tmp_fh );
			rewind( $tmp_fh );
			return stream_get_contents( $tmp_fh );
		}

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.