active_addons = ADTF_Settings::instance()->active_addon_list(); $this->active_addons_file(); } public function active_addons_file() { foreach ($this->active_addons as $addon) { if ($addon['path'] !== '') { $addon_dir = $addon['path']; } else { $addon_dir = ADTF_PATH . '/includes/integrations/' . $addon['slug'] . '/'; } if (file_exists($addon_dir . $addon['slug'] . '.php')) { include_once $addon_dir . $addon['slug'] . '.php'; } } } public static function instance() { static $instance = null; if (is_null($instance)) { $instance = new self(); } return $instance; } } ADTF_Integration::instance();