| 1 |
<?php namespace TierPricingTable\Addons\ReactProductEditorAddon; |
| 2 |
|
| 3 |
use TierPricingTable\Addons\AbstractAddon; |
| 4 |
|
| 5 |
class ReactProductEditorAddon extends AbstractAddon { |
| 6 |
|
| 7 |
public function getName(): string { |
| 8 |
return __( 'WooCommerce Product Editor integration', 'tier-pricing-table' ); |
| 9 |
} |
| 10 |
|
| 11 |
public function getDescription(): string { |
| 12 |
return __( 'Enable support for WooCommerce\'s React-based product editor.', '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="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>'; |
| 17 |
} |
| 18 |
|
| 19 |
public function getSlug(): string { |
| 20 |
return 'woocommerce-react-product-editor'; |
| 21 |
} |
| 22 |
|
| 23 |
public function run() { |
| 24 |
new ProductEditor(); |
| 25 |
} |
| 26 |
|
| 27 |
protected function isActiveByDefault(): bool { |
| 28 |
return false; |
| 29 |
} |
| 30 |
} |
| 31 |
|