| 1 |
<?php namespace TierPricingTable\Addons\ImportExport; |
| 2 |
|
| 3 |
use TierPricingTable\Addons\AbstractAddon; |
| 4 |
|
| 5 |
class ImportExportAddon extends AbstractAddon { |
| 6 |
|
| 7 |
public function getName(): string { |
| 8 |
return __( 'WooCommerce Import/Export', 'tier-pricing-table' ); |
| 9 |
} |
| 10 |
|
| 11 |
public function getDescription(): string { |
| 12 |
return __( 'Adds compatibility with the built-in WooCommerce product importer and exporter.', 'tier-pricing-table' ); |
| 13 |
} |
| 14 |
|
| 15 |
public function getIcon(): string { |
| 16 |
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14.5v-3H7v-3h4v-3l4.5 4.5L11 16.5z"/></svg>'; |
| 17 |
} |
| 18 |
|
| 19 |
public function getSlug(): string { |
| 20 |
return 'import-export'; |
| 21 |
} |
| 22 |
|
| 23 |
public function run() { |
| 24 |
$this->getContainer()->initService( WoocommerceImportService::class ); |
| 25 |
$this->getContainer()->initService( WoocommerceExportService::class ); |
| 26 |
} |
| 27 |
} |
| 28 |
|