# wpvr/8.5.71/includes/setup-wizard.php

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 8.5.71. 105 lines.

- Page: https://pluginprobe.com/plugins/wpvr/8.5.71/code/includes/setup-wizard.php
- Raw: https://pluginprobe.com/plugins/wpvr/8.5.71/raw/includes/setup-wizard.php
- Modified: 2026-04-10T04:58:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpvr/8.5.71/code/includes/setup-wizard.php#L10-L20`.

```php
<?php
/**
 * Setup wizard for the plugin
 *
 * @package ''
 * @since 8.4.10
 */

class WPVR_Setup_Wizard
{

    /**
     * Initialize setup wizards
     *
     * @since 8.4.10
     */
    public function setup_wizard()
    {
        add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
        $this->output_html();
    }

    public function enqueue_scripts($hook) {
        if (!isset($_GET['page']) || $_GET['page'] !== 'rex-wpvr-setup-wizard') {
            return;
        }
        wp_enqueue_media();

        wp_enqueue_style(
            'wpvr-admin-post-type',
            plugin_dir_url( __DIR__ ) . 'admin/css/wpvr-admin-post-type.css',
            [],
            WPVR_VERSION
        );
        wp_enqueue_style(
            'wpvr-setup-wizard',
            WPVR_CSS_PATH . 'setup-wizard.css',
            [ 'wpvr-admin-post-type' ],
            WPVR_VERSION
        );
        wp_enqueue_style(
            'wpvr-pannellum-css',
            WPVR_PLUGIN_DIR_URL . 'admin/lib/pannellum/src/css/pannellum.css',
            [],
            WPVR_VERSION
        );

        wp_enqueue_script(
            'wpvr-libpannellum-js',
            WPVR_PLUGIN_DIR_URL . 'admin/lib/pannellum/src/js/libpannellum.js',
            ['jquery'],
            WPVR_VERSION,
            true
        );
        wp_enqueue_script(
            'wpvr-pannellum-js',
            WPVR_PLUGIN_DIR_URL . 'admin/lib/pannellum/src/js/pannellum.js',
            ['jquery'],
            WPVR_VERSION,
            true
        );
        wp_enqueue_script(
            'wpvr-onboarding-js',
            WPVR_PLUGIN_DIR_URL . 'admin/lib/onboarding/js/onboarding.js',
            ['jquery'],
            WPVR_VERSION,
            true
        );
        wp_enqueue_script(
            'wpvr-setup-wizard',
            WPVR_JS_PATH . 'setup-wizard.js',
            ['jquery'],
            WPVR_VERSION,
            true
        );

        wp_localize_script(
            'wpvr-setup-wizard',
            'wpvrSetupWizardData',
            array(
                'is_pro'                => (bool) apply_filters( 'is_wpvr_pro_active', false ),
                'hotspot_limit'         => 5,
                'upgrade_url'           => esc_url( 'https://rextheme.com/wpvr/pricing/' ),
                'wizard_strings'        => array(
                    'limit_heading'     => __( 'Limit Reached', 'wpvr' ),
                    /* translators: %d: maximum number of hotspots allowed in free version */
                    'limit_line1'       => sprintf( __( 'You can add up to %d hotspots on each scene in the Free version.', 'wpvr' ), 5 ),
                    'limit_line2'       => __( 'Upgrade to Pro to add an unlimited number of hotspots.', 'wpvr' ),
                ),
            )
        );
    }

    /**
     * Output the rendered contents
     *
     * @since 8.4.10
     */
    private function output_html()
    {
        require_once plugin_dir_path(__FILE__) . '../admin/partials/wpvr-setup-wizard-views.php';
        exit();
    }
}

```
