# wpvr/9.1.3/legacy/breakdance/breakdance.php

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 9.1.3. 31 lines.

- Page: https://pluginprobe.com/plugins/wpvr/9.1.3/code/legacy/breakdance/breakdance.php
- Raw: https://pluginprobe.com/plugins/wpvr/9.1.3/raw/legacy/breakdance/breakdance.php
- Modified: 2026-09-03T08:55:56+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.1.3/code/legacy/breakdance/breakdance.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Register WP VR's custom elements before Breakdance scans element locations.
 */
add_action(
    'breakdance_loaded',
    function () {
        if (
            ! function_exists( '\Breakdance\ElementStudio\registerSaveLocation' )
            || ! function_exists( '\Breakdance\Util\getDirectoryPathRelativeToPluginFolder' )
        ) {
            return;
        }

        \Breakdance\ElementStudio\registerSaveLocation(
            \Breakdance\Util\getDirectoryPathRelativeToPluginFolder( __DIR__ ) . '/elements',
            'WpvrElement\\Breakdance',
            'element',
            'WP VR',
            true,
            true
        );
    },
    5
);

```
