| Server IP : 207.244.250.86 / Your IP : 216.73.216.10 Web Server : Apache System : Linux plesk1.codeponents.com 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 User : motionave ( 10025) PHP Version : 8.0.15 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/motionave.com/scott.motionave.com/wp-content/plugins/elementor-beta/core/ |
Upload File : |
<?php
namespace ElementorBeta\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Plugin {
/**
* Class instance.
*
* @var static
*/
protected static $instance = null;
/**
* @var Modules_Manager
*/
public $modules_manager;
/**
* Instance.
*
* Ensures only one instance of the class is loaded or can be loaded.
*
* @return static An instance of the class.
*/
public static function instance() {
if ( is_null( static::$instance ) ) {
static::$instance = new static();
}
return static::$instance;
}
/**
* Plugin constructor.
*/
public function __construct() {
$this->modules_manager = new Modules_Manager();
add_action( 'init', [ $this, 'init' ], -1 /* Should run BEFORE Elementor */ );
}
/**
* Init.
*/
public function init() {
$this->modules_manager->load_modules();
}
}