MO::export_to_file() WordPress Method
The MO::export_to_file() method is used to export a WordPress database to a file. This is useful for creating backups or for moving a WordPress site to a new server.
MO::export_to_file( string $filename ) #
Parameters
- $filename
(string)(Required)
Return
(bool)
Source
File: wp-includes/pomo/mo.php
public function export_to_file( $filename ) { $fh = fopen( $filename, 'wb' ); if ( ! $fh ) { return false; } $res = $this->export_to_file_handle( $fh ); fclose( $fh ); return $res; }
Expand full source codeCollapse full source codeView on TracView on GitHub