| 1 |
<?php namespace TierPricingTable\Addons\Tools; |
| 2 |
|
| 3 |
use TierPricingTable\Addons\AbstractAddon; |
| 4 |
use TierPricingTable\Addons\Tools\API\ToolsEndpoints; |
| 5 |
use TierPricingTable\Addons\Tools\Settings\Settings; |
| 6 |
|
| 7 |
class ToolsAddon extends AbstractAddon { |
| 8 |
|
| 9 |
public function getName(): string { |
| 10 |
return __( 'Tools', 'tier-pricing-table' ); |
| 11 |
} |
| 12 |
|
| 13 |
public function getDescription(): string { |
| 14 |
return __( 'Access utilities for managing and cleaning up tiered pricing data.', 'tier-pricing-table' ); |
| 15 |
} |
| 16 |
|
| 17 |
public function getIcon(): string { |
| 18 |
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"/></svg>'; |
| 19 |
} |
| 20 |
|
| 21 |
public function getSlug(): string { |
| 22 |
return 'tools'; |
| 23 |
} |
| 24 |
|
| 25 |
public function run() { |
| 26 |
new ToolsEndpoints(); |
| 27 |
new Settings(); |
| 28 |
new AdminUserHooks(); |
| 29 |
} |
| 30 |
} |
| 31 |
|