-
Notifications
You must be signed in to change notification settings - Fork 9
/
elementor-beta.php
60 lines (48 loc) · 1.97 KB
/
elementor-beta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Plugin Name: Elementor Beta (Developer Edition)
* Plugin URI: https://elementor.com
* Description: Elementor Developer Edition gives you direct access into Elementor’s development process, and lets you take an active part in perfecting our product. Each Developer Edition release will contain experimental functionalities that developers will be able to use to get familiar with the next releases before they are published.
* Version: 1.1.3
* Author: Elementor.com
* Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=dev-author-uri&utm_medium=wp-dash
* Text Domain: elementor-beta
*
* Requires Plugins: elementor
*
* @package elementor-beta
*/
use ElementorBeta\Bootstrap;
use ElementorBeta\Autoloader;
use ElementorBeta\Modules\DeveloperEdition\Module;
use ElementorBeta\Modules\DeveloperEdition\Admin_Bar;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! defined( 'ELEMENTOR_BETA_FILE' ) ) {
define( 'ELEMENTOR_BETA_FILE', __FILE__ );
}
if ( ! defined( 'ELEMENTOR_BETA_BASENAME' ) ) {
define( 'ELEMENTOR_BETA_BASENAME', plugin_basename( ELEMENTOR_BETA_FILE ) );
}
if ( ! defined( 'ELEMENTOR_BETA_DIR' ) ) {
define( 'ELEMENTOR_BETA_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'ELEMENTOR_BETA_URL' ) ) {
define( 'ELEMENTOR_BETA_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'ELEMENTOR_BETA_NAMESPACE' ) ) {
define( 'ELEMENTOR_BETA_NAMESPACE', 'ElementorBeta' );
}
if ( ! defined( 'ELEMENTOR_BETA_VERSION' ) ) {
define( 'ELEMENTOR_BETA_VERSION', '1.1.3' );
}
// Run autoloader
require_once __DIR__ . '/autoloader.php';
Autoloader::run();
$activate_and_deactivate_action = [ Module::class, 'on_activate_and_deactivate_plugin' ];
register_activation_hook( __FILE__, $activate_and_deactivate_action );
register_activation_hook( __FILE__, [ Admin_Bar::class, 'enable_elementor_inspector' ] );
register_deactivation_hook( __FILE__, $activate_and_deactivate_action );
// Bootstrap the plugin
new Bootstrap();