PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.1
Tiered Pricing Table for WooCommerce v7.1.1
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 / Blocks / RoleBasedPricing.php

RoleBasedPricing.php in Tiered Pricing Table for WooCommerce 7.1.1, at src/Addons/ReactProductEditorAddon/Blocks/RoleBasedPricing.php

40 lines 998 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\ReactProductEditorAddon\Blocks;
2
3 use TierPricingTable\Addons\ReactProductEditorAddon\Block;
4 use TierPricingTable\Addons\ReactProductEditorAddon\Sections\RoleBasedPricingSection;
5
6 class RoleBasedPricing extends Block {
7
8 public function getCustomBlockFolder(): string {
9 return __DIR__ . '/../js/role-based-pricing';
10 }
11
12 public function getId(): string {
13 return 'tiered-pricing-table/product-editor-role-based-pricing';
14 }
15
16 public function getBlockName(): string {
17 return 'tiered-pricing-table/product-editor-role-based-pricing';
18 }
19
20 public function getOrder(): int {
21 return 10;
22 }
23
24 public function getSectionId(): string {
25 return RoleBasedPricingSection::ID;
26 }
27
28 public function getAttributes(): array {
29 return array(
30 'availableRoles' => wp_roles()->roles,
31 'isPremium' => tpt_fs()->can_use_premium_code(),
32 'upgradeUrl' => tpt_fs_activation_url(),
33 );
34 }
35
36 public function isCustomBlock(): bool {
37 return true;
38 }
39 }
40