Automattic\WooCommerce\Admin\API\Reports
ExportableInterface{}
WooCommerce Reports exportable controller interface.
No Hooks.
Usage
$ExportableInterface = new ExportableInterface(); // use class methods
Methods
- public get_export_columns()
- public prepare_item_for_export( $item )
Changelog
Since 3.5.0 | Introduced. |
ExportableInterface{} ExportableInterface{} code WC 9.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 ); }