WordPress at Your Fingertips
function is not described

WC_CSV_Exporter::set_filename() public WC 1.0

Set filename to export to.

{} It's a method of the class: WC_CSV_Exporter{}

No Hooks.

Return

null. Nothing.

Usage

$WC_CSV_Exporter = new WC_CSV_Exporter();
$WC_CSV_Exporter->set_filename( $filename );
$filename(string) (required)
Filename to export to.

Code of WC_CSV_Exporter::set_filename() WC 5.9.0

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