WooCommerce Code Reference

ExportableInterface

WooCommerce Reports exportable controller interface.

Tags
since
3.5.0

Table of Contents

get_export_columns()  : array<string|int, mixed>
Get the column names for export.
prepare_item_for_export()  : array<string|int, mixed>
Get the column values for export.

Methods

get_export_columns()

Get the column names for export.

public get_export_columns() : array<string|int, mixed>
Return values
array<string|int, mixed>Key value pair of Column ID => Label.

prepare_item_for_export()

Get the column values for export.

public prepare_item_for_export(array<string|int, mixed> $item) : array<string|int, mixed>
Parameters
$item : array<string|int, mixed>

Single report item/row.

Return values
array<string|int, mixed>Key value pair of Column ID => Value.