PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 1.4.6
Backup Migration v1.4.6
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 / includes / activation.php
backup-backup / includes Last commit date
banner 1 year ago check 1 year ago cli 1 year ago cron 1 year ago dashboard 1 year ago database 1 year ago extracter 1 year ago htaccess 1 year ago progress 1 year ago scanner 1 year ago staging 1 year ago uploader 1 year ago zipper 1 year ago .htaccess 1 year ago activation.php 1 year ago ajax.php 1 year ago analyst.php 1 year ago backup-process.php 1 year ago cli-handler.php 1 year ago compatibility.php 1 year ago config.php 1 year ago constants.php 1 year ago initializer.php 1 year ago logger.php 1 year ago
activation.php
31 lines
1 <?php
2
3 // Namespace
4 namespace BMI\Plugin;
5
6 // Exit on direct access
7 if (!defined('ABSPATH')) exit;
8
9 // Alias for classes
10 use BMI\Plugin\BMI_Logger as Logger;
11
12 // Activation
13 if (!function_exists('bmi_activate_plugin')) {
14 function bmi_activate_plugin() {
15
16 // Require classes
17 require_once BMI_INCLUDES . '/logger.php';
18 require_once BMI_ROOT_DIR . '/includes/constants.php';
19
20 // Since 1.2.8
21 if (!get_option('bmi_initial_installation_version', false)) {
22 update_option('bmi_initial_installation_version', BMI_VERSION);
23 }
24
25 // Log the activation
26 Logger::log(__("Plugin has been activated", 'backup-backup'));
27 update_option('_bmi_redirect', true);
28
29 }
30 }
31