| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Manage |
| 4 |
* Description: Manage multiple WordPress websites from one place using your Elementor account. Safe updates, monitoring, and bulk actions powered by Elementor. |
| 5 |
* Plugin URI: https://elementor.com/ |
| 6 |
* Version: 1.0.3 |
| 7 |
* Author: Elementor.com |
| 8 |
* Author URI: http://go.elementor.com/author-uri-manage/ |
| 9 |
* License: GPL-3 |
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html |
| 11 |
* Text Domain: manage |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; // Exit if accessed directly. |
| 16 |
} |
| 17 |
|
| 18 |
define( 'MANAGE_VERSION', '1.0.3' ); |
| 19 |
define( 'MANAGE_PLUGIN_BASE', plugin_basename( __FILE__ ) ); |
| 20 |
define( 'MANAGE_PATH', plugin_dir_path( __FILE__ ) ); |
| 21 |
define( 'MANAGE_URL', plugins_url( '/', __FILE__ ) ); |
| 22 |
define( 'MANAGE_ASSETS_PATH', MANAGE_PATH . 'assets/' ); |
| 23 |
define( 'MANAGE_ASSETS_URL', MANAGE_URL . 'assets/' ); |
| 24 |
define( 'MANAGE_CLIENT_APP_URL', MANAGE_ASSETS_URL . 'build/manage.js' ); |
| 25 |
|
| 26 |
final class Manage { |
| 27 |
|
| 28 |
public function __construct() { |
| 29 |
// Load Composer autoloader |
| 30 |
require_once MANAGE_PATH . 'vendor/autoload.php'; |
| 31 |
|
| 32 |
add_action( 'plugins_loaded', [ $this, 'init' ] ); |
| 33 |
} |
| 34 |
|
| 35 |
public function init() { |
| 36 |
// Once we get here, We have passed all validation checks, so we can safely include our plugin |
| 37 |
require_once 'plugin.php'; |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
new Manage(); |
| 42 |
|