MO::export_to_file()
Method of the class: MO{}
No Hooks.
Return
true|false
.
Usage
$MO = new MO(); $MO->export_to_file( $filename );
- $filename(string) (required)
- -
MO::export_to_file() MO::export to file code WP 6.7.1
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; }