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
← All changes | src/Addons/CustomColumns/CustomColumnsAddon.php +10 -10 6.1.0 → 8.0.2 View file →
@@ -1,19 +1,13 @@
1 1 <?php namespace TierPricingTable\Addons\CustomColumns;
2 2
3 3 use TierPricingTable\Addons\AbstractAddon;
4 -use TierPricingTable\Addons\CustomColumns\Form\ColumnsForm;
4 +use TierPricingTable\Addons\CustomColumns\Admin\CustomColumnsAdmin;
5 +use TierPricingTable\Addons\CustomColumns\API\CustomColumnsEndpoints;
5 6
6 7 class CustomColumnsAddon extends AbstractAddon {
7 8
8 9 /**
9 - * Form
10 - *
11 - * @var ColumnsForm
12 - */
13 - public $columnsForm;
14 -
15 - /**
16 10 * Columns Manager
17 11 *
18 12 * @var CustomColumnsManager
19 13 */
@@ -23,10 +17,14 @@
23 17 return __( 'Custom table columns', 'tier-pricing-table' );
24 18 }
25 19
26 20 public function getDescription(): string {
27 - return __( 'This feature allows you to add custom columns to your pricing table.', 'tier-pricing-table' );
21 + return __( 'Add custom columns to your pricing table.', 'tier-pricing-table' );
28 22 }
23 +
24 + public function getIcon(): string {
25 + return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 3h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1zm0 2v3h16V5H4zm0 5v10h4V10H4zm6 0v10h4V10h-4zm6 0v10h4V10h-4z"/></svg>';
26 + }
29 27
30 28 public function getSlug(): string {
31 29 return 'custom-columns';
32 30 }
@@ -31,8 +29,10 @@
31 29 return 'custom-columns';
32 30 }
33 31
34 32 public function run() {
35 - $this->columnsForm = new ColumnsForm( $this );
36 33 $this->columnsManager = CustomColumnsManager::getInstance();
34 +
35 + new CustomColumnsEndpoints();
36 + new CustomColumnsAdmin();
37 37 }
38 38 }