PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Addons / ReactProductEditorAddon / ReactProductEditorAddon.php

ReactProductEditorAddon.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/ReactProductEditorAddon/ReactProductEditorAddon.php

39 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 /**
32 * Not listed in the module list: the integration is experimental and switched on by its option only
33 * (a store that enabled it earlier keeps it).
34 */
35 public function addToAddonsSettings( $addons ) {
36 return $addons;
37 }
38 }
39