Automattic\WooCommerce\Admin\API\Reports

ExportableInterface{}WC 3.5.0

WooCommerce Reports exportable controller interface.

No Hooks.

Usage

$ExportableInterface = new ExportableInterface();
// use class methods

Methods

  1. public get_export_columns()
  2. public prepare_item_for_export( $item )

Changelog

Since 3.5.0 Introduced.

ExportableInterface{} code WC 8.6.1

interface ExportableInterface {

	/**
	 * Get the column names for export.
	 *
	 * @return array Key value pair of Column ID => Label.
	 */
	public function get_export_columns();

	/**
	 * Get the column values for export.
	 *
	 * @param array $item Single report item/row.
	 * @return array Key value pair of Column ID => Value.
	 */
	public function prepare_item_for_export( $item );
}