PluginProbe
Visual Composer Website Builder / 45.1.2
Visual Composer Website Builder v45.1.2
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 / plugin-wordpress.php

plugin-wordpress.php in Visual Composer Website Builder 45.1.2, at plugin-wordpress.php

122 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Visual Composer
5 * Plugin URI: https://visualcomposer.com/premium/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
6 * Description: Create your WordPress website with the fast and easy-to-use drag-and-drop builder for experts and beginners.
7 * Version: 45.1.2
8 * Author: visualcomposer.com
9 * Author URI: https://visualcomposer.com/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
10 * Copyright: (c) 2017 TechMill Ltd.
11 * License: GPLv3
12 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13 * Requires at least: 5.5
14 * Text Domain: visualcomposer
15 * Domain Path: /languages/
16 */
17
18 /**
19 * Check for direct call file.
20 */
21 if (!defined('ABSPATH')) {
22 header('Status: 403 Forbidden');
23 header('HTTP/1.1 403 Forbidden');
24 exit;
25 }
26
27 /**
28 * Skip loading when installing.
29 *
30 * @see wp_installing
31 */
32 if (defined('WP_INSTALLING') && WP_INSTALLING) {
33 return;
34 }
35
36 /**
37 * Check for plugin conflict.
38 */
39 if (defined('VCV_VERSION')) {
40 wp_die(
41 'It seems that another version of Visual Composer Website Builder is active. Please deactivate it before use this version.'
42 );
43 }
44
45 /**
46 * Plugin version constant
47 */
48 define('VCV_VERSION', '45.1.2');
49 /**
50 * Plugin url: 'http://web/wp-content/plugins/plugin_dir/'
51 */
52 define('VCV_PLUGIN_URL', rtrim(plugin_dir_url(__FILE__), '/') . '/');
53 /**
54 * Plugin directory full path: 'server/web/wp-content/plugins/plugin_dir/'
55 * @internal - please try to use vcapp()->path() instead
56 */
57 define('VCV_PLUGIN_DIR_PATH', rtrim(plugin_dir_path(__FILE__), '/') . '/');
58 /**
59 * Plugin "basename" - directoryName/PluginFileName.php: 'vc-five/plugin-wordpress.php'
60 */
61 define('VCV_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
62 /**
63 * Plugin core file full path: '/server/web/wp-content/plugins/vc-five/plugin-wordpress.php'
64 */
65 define('VCV_PLUGIN_FULL_PATH', __FILE__);
66 /**
67 * Plugin directory name: 'visualcomposer'
68 */
69 define('VCV_PLUGIN_DIRNAME', basename(dirname(VCV_PLUGIN_BASE_NAME)));
70 define('VCV_PLUGIN_ASSETS_DIRNAME', 'visualcomposer-assets');
71 /**
72 * Plugin core prefix for options/meta and etc.
73 */
74 define('VCV_PREFIX', 'vcv-');
75
76 // Used in requirements.php
77 /**
78 * Minimal required PHP version.
79 */
80 define('VCV_REQUIRED_PHP_VERSION', '5.6');
81 /**
82 * Minimal required WordPress version.
83 */
84 define('VCV_REQUIRED_BLOG_VERSION', '5.5');
85 if (!defined('VCV_AJAX_REQUEST')) {
86 define('VCV_AJAX_REQUEST', 'vcv-ajax');
87 }
88 if (!defined('VCV_ADMIN_AJAX_REQUEST')) {
89 define('VCV_ADMIN_AJAX_REQUEST', 'vcv-admin-ajax');
90 }
91 if (!defined('VCV_LAZY_LOAD')) {
92 define('VCV_LAZY_LOAD', false);
93 }
94 /**
95 * Check PHP version.
96 * Check WordPress version.
97 * PHP 5.1 parse-able (no parse error).
98 */
99 $dir = dirname(__FILE__);
100
101 require_once $dir . '/visualcomposer/Env.php';
102
103 if (file_exists($dir . '/env-dev.php')) {
104 require_once $dir . '/env-dev.php';
105 } else {
106 require_once $dir . '/env.php';
107 }
108
109 $uploadDir = wp_upload_dir();
110 define('VCV_PLUGIN_ASSETS_DIR_PATH', $uploadDir['basedir'] . '/' . VCV_PLUGIN_ASSETS_DIRNAME);
111
112 require_once $dir . '/visualcomposer/Requirements.php';
113
114 if (!defined('DOING_AJAX') || !DOING_AJAX) {
115 $requirements = new VcvCoreRequirements();
116 $requirements->coreChecks();
117 }
118 // !! PHP 5.4 Required under this line (parse error otherwise).
119
120 // Bootstrap the system.
121 require $dir . '/bootstrap/autoload.php';
122