PluginProbe
Route ‑ Shipping Protection / 2.3.2
Route ‑ Shipping Protection v2.3.2
2.4.17 2.4.16 2.4.15 2.4.14 2.4.13 2.4.12 2.4.11 2.4.10 2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.2.4 2.2.5 2.2.6 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 All 151 releases
routeapp / includes / class-routeapp-integrations.php

class-routeapp-integrations.php in Route ‑ Shipping Protection 2.3.2, at includes/class-routeapp-integrations.php

29 lines 742 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 class Routeapp_Plugin_Integrations {
7
8 public static $plugin_integrations = array();
9
10 public static function setup() {
11 $compatibilities_folder = [ 'tracking', 'checkout' ];
12 foreach ( $compatibilities_folder as $folder ) {
13 foreach ( glob( plugin_dir_path( __FILE__ ) . '../integrations/' . $folder . '/*.php' ) as $filename ) {
14 require_once( $filename );
15 }
16 }
17
18 }
19
20 public static function register( $object, $slug ) {
21 self::$plugin_integrations[ $slug ] = $object;
22 }
23
24 public static function get_compatibility_class( $slug ) {
25 return ( isset( self::$plugin_integrations[ $slug ] ) ) ? self::$plugin_integrations[ $slug ] : false;
26 }
27 }
28
29 Routeapp_Plugin_Integrations::setup();