$data = !empty(self::$wp_localize_scripts[$handle]) ? self::$wp_localize_scripts[$handle] : false;
            if (wp_script_is($handle) && $data) {
                $name = str_replace('-', '_', $handle) . '_localize';
                unset(self::$wp_localize_scripts[$handle]);
                wp_localize_script($handle, $name, apply_filters($name, $data));
            }
        }
        /**
         * Load necessary styles + scripts for admin
         */
        static function load_scripts()
        {
            self::enqueue_style('learnpress-admin-css', LPR_CSS_URL . 'learnpress-admin.css');
            self::enqueue_script('learnpress-admin-js', LPR_JS_URL . 'learnpress-admin.js');
            self::enqueue_script('learnpress-block-ui', LPR_JS_URL . 'jquery.block-ui.js');
        }
        /**
         * Translate the text if needed
         */
        static function localize_printed_scripts()
        {
            if (self::$scripts) {
                foreach (self::$scripts as $handle) {
                    self::localize_script($handle);
                }
            }
        }
    }
}
LPR_Admin_Assets::init();