Automattic\WooCommerce\Admin\API\Reports
ExportableInterface{}
WooCommerce Reports exportable controller interface.
Хуков нет.
Использование
$ExportableInterface = new ExportableInterface(); // use class methods
Методы
- public get_export_columns()
- public prepare_item_for_export( $item )
Список изменений
| С версии 3.5.0 | Введена. |
Код ExportableInterface{} ExportableInterface{} WC 10.5.2
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 );
}