| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: WP Synchro FREE |
| 4 |
Plugin URI: https://daev.tech/wpsynchro |
| 5 |
Description: Professional migration plugin for WordPress - Migration of database and files made easy |
| 6 |
Version: 1.16.0 |
| 7 |
Author: DAEV.tech |
| 8 |
Author URI: https://daev.tech |
| 9 |
Domain Path: /languages |
| 10 |
Text Domain: wpsynchro |
| 11 |
License: GPLv3 |
| 12 |
License URI: http://www.gnu.org/licenses/gpl-3.0 |
| 13 |
Update URI: https://wordpress.org/plugins/wpsynchro/ |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Copyright (C) 2018 DAEV (email: support@daev.tech) |
| 18 |
* |
| 19 |
* This program is free software; you can redistribute it and/or |
| 20 |
* modify it under the terms of the GNU General Public License |
| 21 |
* as published by the Free Software Foundation; either version 2 |
| 22 |
* of the License, or (at your option) any later version. |
| 23 |
* |
| 24 |
* This program is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* You should have received a copy of the GNU General Public License |
| 30 |
* along with this program; if not, write to the Free Software |
| 31 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 32 |
*/ |
| 33 |
if (!defined('ABSPATH')) { |
| 34 |
exit; |
| 35 |
} // Exit if accessed directly |
| 36 |
|
| 37 |
define('WPSYNCHRO_VERSION', '1.16.0'); |
| 38 |
define('WPSYNCHRO_DB_VERSION', '10'); |
| 39 |
define('WPSYNCHRO_NEWEST_MU_COMPATIBILITY_VERSION', '1.0.5'); |
| 40 |
|
| 41 |
// Load composer autoloader |
| 42 |
require_once dirname(__FILE__) . '/vendor/autoload.php'; |
| 43 |
|
| 44 |
/** |
| 45 |
* On plugin activation |
| 46 |
*/ |
| 47 |
function wpsynchroActivation(bool $networkwide) |
| 48 |
{ |
| 49 |
\WPSynchro\Utilities\Activation::activate($networkwide); |
| 50 |
} |
| 51 |
register_activation_hook(__FILE__, 'wpsynchroActivation'); |
| 52 |
|
| 53 |
/** |
| 54 |
* On plugin deactivation |
| 55 |
*/ |
| 56 |
function wpsynchroDeactivation() |
| 57 |
{ |
| 58 |
\WPSynchro\Utilities\Activation::deactivate(); |
| 59 |
} |
| 60 |
register_deactivation_hook(__FILE__, 'wpsynchroDeactivation'); |
| 61 |
|
| 62 |
/** |
| 63 |
* On plugin uninstall |
| 64 |
*/ |
| 65 |
function wpsynchroUninstall() |
| 66 |
{ |
| 67 |
\WPSynchro\Utilities\Activation::uninstall(); |
| 68 |
} |
| 69 |
register_uninstall_hook(__FILE__, 'wpsynchroUninstall'); |
| 70 |
|
| 71 |
/** |
| 72 |
* Run WP Synchro |
| 73 |
*/ |
| 74 |
(new \WPSynchro\WPSynchroBootstrap())->run(); |
| 75 |
|