MO::export_to_file
Method of the class: MO{}
No Hooks.
Returns
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.9
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;
}