WC_CSV_Exporter::set_filename( string $filename )

Set filename to export to.


Description Description


Parameters Parameters

$filename

(Required) Filename to export to.


Top ↑

Source Source

File: includes/export/abstract-wc-csv-exporter.php

	public function set_filename( $filename ) {
		$this->filename = sanitize_file_name( str_replace( '.csv', '', $filename ) . '.csv' );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.