# wpvr/9.0.2/src/Frontend/Frontend.php

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 9.0.2. 26 lines.

- Page: https://pluginprobe.com/plugins/wpvr/9.0.2/code/src/Frontend/Frontend.php
- Raw: https://pluginprobe.com/plugins/wpvr/9.0.2/raw/src/Frontend/Frontend.php
- Modified: 2026-08-20T11:07:58+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/9.0.2/code/src/Frontend/Frontend.php#L10-L20`.

```php
<?php

namespace RexTheme\WPVR\Frontend;

/**
 * Standalone wrapper for the legacy Wpvr_Public class.
 *
 * Handles public-side init and asset enqueuing via the legacy class.
 * Also instantiates Shortcode internally (Wpvr_Public creates it in its constructor).
 */
class Frontend {

    private $legacy;

    public function __construct() {
        require_once WPVR_PLUGIN_LEGACY_DIR_PATH . 'public/class-wpvr-public.php';
        require_once WPVR_PLUGIN_LEGACY_DIR_PATH . 'public/classes/class-wpvr-shortcode.php';

        $this->legacy = new \Wpvr_Public( 'wpvr', WPVR_VERSION );

        add_action( 'wp_enqueue_scripts', [ $this->legacy, 'enqueue_styles' ] );
        add_action( 'wp_enqueue_scripts', [ $this->legacy, 'enqueue_scripts' ] );
        $this->legacy->public_init();
    }
}

```
