PluginProbe
Visual Composer Website Builder / 45.0.1
Visual Composer Website Builder v45.0.1
45.16.2 45.16.1 45.2-beta.1 45.2-beta.2 45.2.0 45.3-beta.1 45.3.0 45.4-beta.1 45.4.0 45.4.1 45.4.1-beta.2 45.5-beta.1 45.5.0 45.6-beta.1 45.6.0 45.7-beta.1 45.7.0 45.8-beta.1 45.8.0 45.9.0 trunk 45.0 45.0-beta.1 45.0.1 45.1-beta.1 All 40 releases
visualcomposer / bootstrap / autoload.php

autoload.php in Visual Composer Website Builder 45.0.1, at bootstrap/autoload.php

33 lines 807 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 header('Status: 403 Forbidden');
5 header('HTTP/1.1 403 Forbidden');
6 exit;
7 }
8
9 /**
10 * Register The Composer Auto Loader.
11 *
12 * Composer provides a convenient, automatically generated class loader
13 * for our application. We just need to utilize it! We'll require it
14 * into the script here so that we do not have to worry about the
15 * loading of any our classes "manually".
16 *
17 **/
18 $dir = dirname(__FILE__);
19 require_once $dir . '/../vendor/autoload.php';
20 require_once $dir . '/../visualcomposer/Framework/helpers.php';
21
22 if (VCV_LAZY_LOAD) {
23 add_action('vcv:bootstrap:lazyload', 'vcvboot');
24 } else {
25 vcvboot();
26 }
27
28 /**
29 * Add action for init state.
30 */
31 add_action('init', 'vcvinit', 21); // 20 used in tablepress
32 add_action('admin_init', 'vcvadmininit', 21);
33