PluginProbe ʕ •ᴥ•ʔ
Meta for WooCommerce / 1.11.3
Meta for WooCommerce v1.11.3
3.7.1 trunk 1.10.0 1.10.1 1.10.2 1.11.0 1.11.1 1.11.2 1.11.3 1.11.4 1.9.11 1.9.12 1.9.13 1.9.14 1.9.15 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.4.0 2.4.1 2.5.0 2.5.1 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.18 2.6.19 2.6.2 2.6.20 2.6.21 2.6.22 2.6.23 2.6.24 2.6.25 2.6.26 2.6.27 2.6.28 2.6.29 2.6.3 2.6.30 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.18 3.0.19 3.0.2 3.0.20 3.0.21 3.0.22 3.0.23 3.0.24 3.0.25 3.0.26 3.0.27 3.0.28 3.0.29 3.0.3 3.0.30 3.0.31 3.0.32 3.0.33 3.0.34 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.4.0 3.4.1 3.4.10 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.10 3.5.11 3.5.12 3.5.13 3.5.14 3.5.15 3.5.16 3.5.17 3.5.18 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.7.0
facebook-for-woocommerce / includes / Integrations / Integrations.php
facebook-for-woocommerce / includes / Integrations Last commit date
Integrations.php 6 years ago
Integrations.php
69 lines
1 <?php
2 /**
3 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
4 *
5 * This source code is licensed under the license found in the
6 * LICENSE file in the root directory of this source tree.
7 *
8 * @package FacebookCommerce
9 */
10
11 namespace SkyVerge\WooCommerce\Facebook\Integrations;
12
13 defined( 'ABSPATH' ) or exit;
14
15 use SkyVerge\WooCommerce\PluginFramework\v5_5_4 as Framework;
16
17 /**
18 * The integrations handler.
19 *
20 * @since 1.11.1
21 */
22 class Integrations {
23
24
25 /** @var Framework\SV_WC_Plugin plugin instance */
26 private $plugin;
27
28 /** @var object[] integration instances */
29 private $integrations;
30
31
32 /**
33 * Integrations constructor.
34 *
35 * @since 1.11.1
36 *
37 * @param Framework\SV_WC_Plugin $plugin plugin instance
38 */
39 public function __construct( $plugin ) {
40
41 $this->plugin = $plugin;
42
43 $this->load_integrations();
44 }
45
46
47 /**
48 * Loads integration classes.
49 *
50 * @since 1.11.1
51 */
52 private function load_integrations() {
53
54 $registered_integrations = [
55 'WC_Facebook_WPML_Injector' => '/includes/fbwpml.php',
56 ];
57
58 foreach ( $registered_integrations as $class_name => $path ) {
59
60 if ( ! class_exists( $class_name ) && ! is_readable( $path ) ) {
61
62 $this->integrations[ $class_name ] = $this->plugin->load_class( $path, $class_name );
63 }
64 }
65 }
66
67
68 }
69