WordPress at Your Fingertips
function is not described

WC_CSV_Exporter::export_rows() protected WC 3.1.0

Export rows in CSV format.

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

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->export_rows();

Changelog

Since 3.1.0 Introduced.

Code of WC_CSV_Exporter::export_rows() WC 5.9.0

protected function export_rows() {
	$data   = $this->get_data_to_export();
	$buffer = fopen( 'php://output', 'w' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fopen
	ob_start();

	array_walk( $data, array( $this, 'export_row' ), $buffer );

	return apply_filters( "woocommerce_{$this->export_type}_export_rows", ob_get_clean(), $this );
}