PluginProbe
Tiered Pricing Table for WooCommerce / trunk
Tiered Pricing Table for WooCommerce vtrunk
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 2.3.4 All 90 releases
tier-pricing-table / src / Admin / Admin.php

Admin.php in Tiered Pricing Table for WooCommerce trunk, at src/Admin/Admin.php

58 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Admin;
2
3 use TierPricingTable\Admin\ProductPage\AdvanceOptionsForVariableProduct;
4 use TierPricingTable\Admin\ProductPage\Product;
5 use TierPricingTable\Admin\ProductPage\TieredPricingTab;
6 use TierPricingTable\Admin\ProductPage\RoleCustomerPricingTab;
7 use TierPricingTable\Admin\WelcomePage\WelcomePage;
8 use TierPricingTable\Core\ServiceContainerTrait;
9 use TierPricingTable\TierPricingTablePlugin;
10 use TierPricingTable\Admin\Tips\TipsManager;
11
12 /**
13 * Class Admin
14 *
15 * @package TierPricingTable\Admin
16 */
17 class Admin {
18
19 use ServiceContainerTrait;
20
21 /**
22 * Array of Managers
23 *
24 * @var array
25 */
26 private $managers;
27
28 /**
29 * Admin constructor.
30 *
31 * Register menu items and handlers
32 *
33 */
34 public function __construct() {
35 new Product();
36 new TieredPricingTab();
37 new RoleCustomerPricingTab();
38 new AdvanceOptionsForVariableProduct();
39 new TipsManager();
40
41 new WelcomePage();
42
43 add_action( 'admin_enqueue_scripts', [ $this, 'enqueueAssets' ], 10, 2 );
44 }
45
46 /**
47 * Register assets on product create/update page
48 */
49 public function enqueueAssets() {
50 wp_enqueue_script( 'tiered-pricing-table-admin-js',
51 $this->getContainer()->getFileManager()->locateJSAsset( 'admin/main' ), [ 'jquery' ],
52 TierPricingTablePlugin::VERSION );
53 wp_enqueue_style( 'tiered-pricing-table-admin-css',
54 $this->getContainer()->getFileManager()->locateCSSAsset( 'admin/style.css' ), array(),
55 TierPricingTablePlugin::VERSION );
56 }
57 }
58