| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPVR WPBakery Loader |
| 4 |
* Loads the WPVR WPBakery integration when WPBakery (Visual Composer) is present. |
| 5 |
* |
| 6 |
* Place this file at: /builders/wpbakery/wpvr-loader.php |
| 7 |
* @since 8.5.48 |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* Load WPVR WPBakery Element |
| 16 |
* @since 8.5.48 |
| 17 |
*/ |
| 18 |
add_action( 'vc_before_init', 'wpvr_wpbakery_register' ); |
| 19 |
|
| 20 |
/** |
| 21 |
* Require WPVR WPBakery Element file |
| 22 |
* @since 8.5.48 |
| 23 |
*/ |
| 24 |
function wpvr_wpbakery_register() { |
| 25 |
$file = dirname( __FILE__ ) . '/wpvr-element.php'; |
| 26 |
if ( file_exists( $file ) ) { |
| 27 |
require_once $file; |
| 28 |
} |
| 29 |
} |
| 30 |
|