/** * @param $prefix * @param $file * @param $version * * @return Woosym_Korean_Localization_Settings */ public static function instance($prefix, $file, $version) { if (is_null(self::$_instance)) { self::$_instance = new static($prefix, $file, $version); } return self::$_instance; }
public function init_modules() { if ($this->is_request('admin')) { wskl_load_module('/includes/class-settings.php'); $this->_settings = Woosym_Korean_Localization_Settings::instance(WSKL_PREFIX, WSKL_MAIN_FILE, WSKL_VERSION); /** authorization */ wskl_load_module('/includes/lib/auth/class-wskl-auth.php'); new WSKL_Auth($this->settings()); /** wp-config.php editor */ wskl_load_module('/includes/class-wskl-config-editor.php', 'enable_config_editor'); } if (wskl_debug_enabled()) { wskl_load_module('/includes/lib/wskl-debugging.php'); } $this->init_payment_modules(); $this->init_essential_modules(); $this->init_extension_modules(); $this->init_marketing_modules(); }