-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlw-all-in-one.php
83 lines (71 loc) · 2.41 KB
/
lw-all-in-one.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* The plugin bootstrap file
*
* @link https://localweb.it/
* @package Lw_All_In_One
*
* @wordpress-plugin
* Plugin Name: LocalWeb All In One
* Description: LocalWeb All In One should be installed only on websites created by Local Web S.R.L, because it extends certain functionalities of the website which may send certain data to LocalWeb's servers. This is to make possible showing data on LocalWeb App.
* Version: 1.6.9
* Author: Local Web S.R.L
* Author URI: https://localweb.it/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: lw_all_in_one
* Domain Path: /languages
* Plugin URI: https://wordpress.org/plugins/lw-all-in-one/
* GitHub URI: https://github.com/sajdoko/lw-all-in-one
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
/**
* Currently plugin version.
*/
define('LW_ALL_IN_ONE_VERSION', '1.6.9');
/**
* Plugin name.
*/
define('LW_ALL_IN_ONE_PLUGIN_NAME', 'lw_all_in_one');
define('LW_ALL_IN_ONE_PLUGIN', plugin_basename(__FILE__));
define('LW_ALL_IN_ONE_PLUGIN_MAIN_FILE', __FILE__);
/**
* Define plugin custom table names.
*/
define('LW_ALL_IN_ONE_A_EVENTS_TABLE', 'lw_aio_a_events');
define('LW_ALL_IN_ONE_CF7_TABLE', 'lw_aio_cf7');
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-lw-all-in-one-activator.php
*/
function activate_lw_all_in_one() {
require_once plugin_dir_path(__FILE__) . 'includes/class-lw-all-in-one-activator.php';
Lw_All_In_One_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-lw-all-in-one-deactivator.php
*/
function deactivate_lw_all_in_one() {
require_once plugin_dir_path(__FILE__) . 'includes/class-lw-all-in-one-deactivator.php';
Lw_All_In_One_Deactivator::deactivate();
}
register_activation_hook(__FILE__, 'activate_lw_all_in_one');
register_deactivation_hook(__FILE__, 'deactivate_lw_all_in_one');
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path(__FILE__) . 'includes/class-lw-all-in-one.php';
/**
* Begins execution of the plugin.
*
*/
function run_lw_all_in_one() {
$plugin = new Lw_All_In_One();
$plugin->run();
}
run_lw_all_in_one();