| 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 |
|