Automattic\WooCommerce\Admin\API\Reports

ExportableInterface{}WC 3.5.0

WooCommerce Reports exportable controller interface.

Хуков нет.

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

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

Методы

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

Список изменений

С версии 3.5.0 Введена.

Код ExportableInterface{} WC 8.7.0

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