/** * Load static resources. * * @author Vova Feldman (@svovaf) * @since 1.0.1 */ private static function _load_required_static() { if (self::$_statics_loaded) { return; } self::$_static_logger = FS_Logger::get_logger(WP_FS__SLUG, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK); self::$_static_logger->entrance(); self::$_accounts = FS_Option_Manager::get_manager(WP_FS__ACCOUNTS_OPTION_NAME, true); self::$_global_admin_notices = FS_Admin_Notice_Manager::instance('global'); // Configure which Freemius powered plugins should be auto updated. // add_filter( 'auto_update_plugin', '_include_plugins_in_auto_update', 10, 2 ); add_action('admin_menu', array('Freemius', 'add_debug_page')); add_action("wp_ajax_fs_toggle_debug_mode", array('Freemius', '_toggle_debug_mode')); add_action('plugins_loaded', array('Freemius', '_load_textdomain'), 1); self::$_statics_loaded = true; }