Automattic\WooCommerce\Admin

ReportCSVExporter::delete_headers_row_file │ private │ WC 1.0

Delete the headers row file, so the export is not downloadable.

Метод класса: ReportCSVExporter{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->delete_headers_row_file();

Код ReportCSVExporter::delete_headers_row_file() WC 11.3.0

private function delete_headers_row_file() {
	$headers_path = $this->get_headers_row_file_path();

	if ( file_exists( $headers_path ) ) {
		wp_delete_file( $headers_path );
	}
}