class-avcf-wc-abilities.php
4 weeks ago
class-avcf-wc-attributes.php
4 weeks ago
class-avcf-wc-catalog.php
4 weeks ago
class-avcf-wc-checkout-email.php
4 weeks ago
class-avcf-wc-coupons.php
4 weeks ago
class-avcf-wc-customers.php
4 weeks ago
class-avcf-wc-detector.php
4 weeks ago
class-avcf-wc-orders.php
4 weeks ago
class-avcf-wc-product-relations.php
4 weeks ago
class-avcf-wc-products.php
4 weeks ago
class-avcf-wc-shipping.php
4 weeks ago
class-avcf-wc-tax.php
4 weeks ago
class-avcf-wc-variations.php
4 weeks ago
class-avcf-wc-abilities.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WooCommerce — Abilities orchestrator. |
| 4 | * |
| 5 | * Single entry point that instantiates all the WooCommerce ability classes |
| 6 | * and triggers their register() methods. Called from doit/class-avcf-mcp.php |
| 7 | * inside the WC-available check, so this class itself doesn't need to |
| 8 | * sentinel-check WooCommerce — but each ability class still does as |
| 9 | * defence-in-depth in case ordering changes. |
| 10 | * |
| 11 | * Files dispatched: |
| 12 | * class-avcf-wc-products.php 5 abilities |
| 13 | * class-avcf-wc-variations.php 5 abilities |
| 14 | * class-avcf-wc-product-relations.php 3 abilities |
| 15 | * class-avcf-wc-orders.php 3 abilities |
| 16 | * class-avcf-wc-customers.php 4 abilities |
| 17 | * class-avcf-wc-coupons.php 5 abilities |
| 18 | * class-avcf-wc-shipping.php 3 abilities |
| 19 | * class-avcf-wc-tax.php 3 abilities |
| 20 | * class-avcf-wc-checkout-email.php 4 abilities |
| 21 | * class-avcf-wc-attributes.php 6 abilities |
| 22 | * class-avcf-wc-catalog.php 4 abilities |
| 23 | * ───────────── |
| 24 | * 45 abilities total |
| 25 | * |
| 26 | * @package atarim-visual-collaboration |
| 27 | */ |
| 28 | |
| 29 | if ( ! defined('ABSPATH') ) { |
| 30 | exit; |
| 31 | } |
| 32 | |
| 33 | class AVCF_Abilities_WooCommerce extends AVCF_Abilities_Base { |
| 34 | |
| 35 | /** |
| 36 | * @var AVCF_WC_Detector |
| 37 | */ |
| 38 | private $detector; |
| 39 | |
| 40 | public function __construct() { |
| 41 | $this->detector = new AVCF_WC_Detector(); |
| 42 | } |
| 43 | |
| 44 | public function register() { |
| 45 | if ( ! $this->detector->avcf_wc_is_available() ) { |
| 46 | return; |
| 47 | } |
| 48 | |
| 49 | ( new AVCF_WC_Products() )->register(); |
| 50 | ( new AVCF_WC_Variations() )->register(); |
| 51 | ( new AVCF_WC_Product_Relations() )->register(); |
| 52 | ( new AVCF_WC_Orders() )->register(); |
| 53 | ( new AVCF_WC_Customers() )->register(); |
| 54 | ( new AVCF_WC_Coupons() )->register(); |
| 55 | ( new AVCF_WC_Shipping() )->register(); |
| 56 | ( new AVCF_WC_Tax() )->register(); |
| 57 | ( new AVCF_WC_Checkout_Email() )->register(); |
| 58 | ( new AVCF_WC_Attributes() )->register(); |
| 59 | ( new AVCF_WC_Catalog() )->register(); |
| 60 | } |
| 61 | } |
| 62 |