PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.1.7
Backup Migration v2.1.7
2.1.7 2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / backup-backup.php
backup-backup Last commit date
admin 2 weeks ago analyst 2 weeks ago includes 2 weeks ago modules 2 weeks ago backup-backup.php 2 weeks ago composer.json 2 weeks ago phpunit.xml 2 weeks ago readme.txt 2 weeks ago uninstall.php 2 weeks ago
backup-backup.php
75 lines
1 <?php
2
3 /**
4 * Plugin Name: Backup Migration
5 * Description: Backup, migrate, and create staging sites with free cloud storage and support.
6 * Author: Inisev
7 * Author URI: https://inisev.com
8 * Plugin URI: https://backupbliss.com
9 * Text Domain: backup-backup
10 * Version: 2.1.7
11 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12
13 // Exit on direct access
14 if (!defined('ABSPATH')) exit;
15
16 // Default namespace
17 use BMI\Plugin AS BMI;
18
19 // Not dynamic constants
20 if (!defined('BMI_DEBUG')) {
21 define('BMI_DEBUG', false);
22 }
23 if (!defined('BMI_VERSION')) {
24 define('BMI_VERSION', '2.1.7');
25 }
26 if (!defined('BMI_ROOT_DIR')) {
27 define('BMI_ROOT_DIR', __DIR__);
28 }
29 if (!defined('BMI_ROOT_FILE')) {
30 define('BMI_ROOT_FILE', __FILE__);
31 }
32 if (!defined('BMI_INCLUDES')) {
33 define('BMI_INCLUDES', BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'includes');
34 }
35 if (!defined('BMI_MODULES_DIR')) {
36 define('BMI_MODULES_DIR', BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR);
37 }
38
39 // Activation hook
40 register_activation_hook(BMI_ROOT_FILE, function () {
41 require_once BMI_INCLUDES . DIRECTORY_SEPARATOR . 'activation.php';
42 BMI\bmi_activate_plugin();
43 });
44
45 // Fixes for some cases
46 require_once BMI_INCLUDES . DIRECTORY_SEPARATOR . 'compatibility.php';
47
48 // Opt-in sub plugin
49 require_once BMI_INCLUDES . DIRECTORY_SEPARATOR . 'analyst.php';
50
51 // WP-CLI Integration
52 if (defined('WP_CLI') && WP_CLI) {
53 require_once BMI_INCLUDES . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'wp-cli.php';
54 }
55
56 // Load plugin after all
57 add_action('init', function () {
58
59 // Global plugin variables
60 require_once BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'constants.php';
61
62 // Initialize backup-migration
63 if (!class_exists('Backup_Migration_Plugin')) {
64
65 // Require initializator
66 require_once BMI_ROOT_DIR . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'initializer.php';
67
68 // Initialize entire plugin
69 $bmi_instance = new BMI\Backup_Migration_Plugin();
70 $bmi_instance->initialize();
71
72 }
73
74 }, 15);
75