| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: MultiManager WP |
| 5 |
* Plugin URI: https://www.icdsoft.com/en/hosting/wordpress-manager |
| 6 |
* Description: This plugin helps you connect your site to the ICDSoft WordPress MultiManager toolkit, which allows you to manage multiple WordPress sites. |
| 7 |
* Version: 1.0.4 |
| 8 |
* Author: ICDSoft Hosting |
| 9 |
* Author URI: https://icdsoft.com |
| 10 |
* Text Domain: multimanager-wp |
| 11 |
* Domain Path: /languages |
| 12 |
*/ |
| 13 |
|
| 14 |
// If this file is called directly, abort. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; // Don't access directly. |
| 17 |
}; |
| 18 |
|
| 19 |
/** |
| 20 |
* Plugin version. |
| 21 |
*/ |
| 22 |
const MULTIMANAGER_WP_VERSION = '1.0.4'; |
| 23 |
|
| 24 |
/** |
| 25 |
* The code that runs during plugin activation. |
| 26 |
* This action is documented in includes/class-multi-manager-wp-activator.php |
| 27 |
*/ |
| 28 |
function multimanager_wp_activate_MultiManager_WP() { |
| 29 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-multi-manager-wp-activator.php'; |
| 30 |
MultiManager_WP_Activator::activate(); |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* The code that runs during plugin deactivation. |
| 35 |
* This action is documented in includes/class-multi-manager-wp-deactivator.php |
| 36 |
*/ |
| 37 |
function multimanager_wp_deactivate_MultiManager_WP() { |
| 38 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-multi-manager-wp-deactivator.php'; |
| 39 |
MultiManager_WP_Deactivator::deactivate(); |
| 40 |
} |
| 41 |
|
| 42 |
register_activation_hook( __FILE__, 'multimanager_wp_activate_MultiManager_WP' ); |
| 43 |
register_deactivation_hook( __FILE__, 'multimanager_wp_deactivate_MultiManager_WP' ); |
| 44 |
|
| 45 |
/** |
| 46 |
* The core plugin class that is used to define internationalization, |
| 47 |
* admin-specific hooks, and public-facing site hooks. |
| 48 |
*/ |
| 49 |
require plugin_dir_path( __FILE__ ) . 'includes/class-multi-manager-wp.php'; |
| 50 |
|
| 51 |
/** |
| 52 |
* Begins execution of the plugin. |
| 53 |
* |
| 54 |
* Since everything within the plugin is registered via hooks, |
| 55 |
* then kicking off the plugin from this point in the file does |
| 56 |
* not affect the page life cycle. |
| 57 |
* |
| 58 |
* @since 1.0.0 |
| 59 |
*/ |
| 60 |
function multimanager_wp_run_MultiManager_WP() { |
| 61 |
|
| 62 |
$plugin = new MultiManager_WP(); |
| 63 |
$plugin->run(); |
| 64 |
|
| 65 |
} |
| 66 |
multimanager_wp_run_MultiManager_WP(); |
| 67 |
|