PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 9.1.3
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v9.1.3
9.1.3 9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 All 222 releases
wpvr / legacy / breakdance / breakdance.php

breakdance.php in WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress 9.1.3, at legacy/breakdance/breakdance.php

31 lines 721 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 * Register WP VR's custom elements before Breakdance scans element locations.
9 */
10 add_action(
11 'breakdance_loaded',
12 function () {
13 if (
14 ! function_exists( '\Breakdance\ElementStudio\registerSaveLocation' )
15 || ! function_exists( '\Breakdance\Util\getDirectoryPathRelativeToPluginFolder' )
16 ) {
17 return;
18 }
19
20 \Breakdance\ElementStudio\registerSaveLocation(
21 \Breakdance\Util\getDirectoryPathRelativeToPluginFolder( __DIR__ ) . '/elements',
22 'WpvrElement\\Breakdance',
23 'element',
24 'WP VR',
25 true,
26 true
27 );
28 },
29 5
30 );
31