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)
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub