config = new ConfigManager(VAKS_ROOT_DIR."/Common/config/config.json", false); $this->config->mergeConfig($this->getCustomConfig()); Activation::bind(__FILE__); AdminNotice::bind(); ExtractGameOnPostSave::bind(); InjectWidgetIntoPost::bind(); PostGame::bind(); ScanPostsAjax::bind(); SavePostGames::bind(); VAKSWidget::bind(); VAKSShortcode::bind(); WidgetAdminPage::bind(); $this->bindPluginListLink(); $this->bindTranslation(); ShortcodePreviewAjax::bind(); PresetAjax::bind(); } private function bindTranslation() { add_action("plugins_loaded", function () { load_plugin_textdomain("allkeyshop-widget", false, basename(dirname(__FILE__)) ."/Common/languages"); }); } private function bindPluginListLink() { $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", function ($links) { $link = ''. __("Settings") .''; array_unshift($links, $link); return $links; }); } private function getCustomConfig() { return get_option($this->config->get("metaKeys.customConfig"), array()); } } VAKS::instance();