diff --git a/includes/Integrations.php b/includes/Integrations.php new file mode 100644 index 00000000..12205b52 --- /dev/null +++ b/includes/Integrations.php @@ -0,0 +1,37 @@ +container['dokan'] = new Integrations\WPUF_Dokan_Integration(); + } + + if ( class_exists( 'WC_Vendors' ) ) { + $this->container['wc_vendors'] = new Integrations\WPUF_WC_Vendors_Integration(); + } + + if ( class_exists( 'WCMp' ) ) { + $this->container['wcmp'] = new Integrations\WPUF_WCMp_Integration(); + } + + if ( class_exists( 'ACF' ) ) { + $this->container['acf'] = new Integrations\WPUF_ACF_Compatibility(); + } + } +} diff --git a/wpuf.php b/wpuf.php index 592c40fa..08582332 100644 --- a/wpuf.php +++ b/wpuf.php @@ -173,6 +173,7 @@ public function instantiate() { $this->container['bank'] = new WeDevs\Wpuf\Lib\Gateway\Bank(); $this->container['paypal'] = new WeDevs\Wpuf\Lib\Gateway\Paypal(); $this->container['api'] = new WeDevs\Wpuf\API(); + $this->container['integrations'] = new WeDevs\Wpuf\Integrations(); if ( is_admin() ) { $this->container['admin'] = new WeDevs\Wpuf\Admin();