WordPress at a glance
class is not described

Automattic\WooCommerce\Admin\API\Reports

ExportableInterface{} WC 3.5.0

WooCommerce Reports exportable controller interface.

No Hooks.

Return

null. Nothing.

Usage

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

Methods

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

Changelog

Since 3.5.0 Introduced.

Code of ExportableInterface{} WC 5.2.2

<?php
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 );
}