'Version'), 'plugin'); self::$version = $plugin_data['version']; return $plugin_data['version']; } // get_plugin_version /** * Set plugin version and texdomain * * @since 5.0 * * @return null */ static function plugins_loaded() { self::get_plugin_version(); load_plugin_textdomain('advanced-google-recaptcha'); } // plugins_loaded static function run() { self::plugins_loaded(); WPCaptcha_Setup::load_actions(); } } // class WPCaptcha /** * Setup Hooks */ register_activation_hook(__FILE__, array('WPCaptcha_Setup', 'activate')); register_deactivation_hook(__FILE__, array('WPCaptcha_Setup', 'deactivate')); register_uninstall_hook(__FILE__, array('WPCaptcha_Setup', 'uninstall')); add_action('plugins_loaded', array('wpcaptcha', 'run'), -9999); add_action('init', array('wpcaptcha', 'init'), -1);