Current File : /home/n742ef5/royalanteam.com/wp-content/plugins/myhome-core/myhome-core.php |
<?php
/*
Plugin Name: MyHome Core
Version: 4.0.7
Plugin URI: https://tangibledesign.net
Text Domain: myhome-core
Domain Path: /languages
Description: This plugin is a part of MyHome theme.
Author: TangibleWP
*/
if (!defined('ABSPATH')) {
exit;
}
register_activation_hook(__FILE__, static function () {
$opt = get_option('myhome_importer_redirect');
if ($opt !== '0') {
update_option('myhome_importer_redirect', 1);
}
update_option('elementor_onboarded', true);
});
if (class_exists('Vc_Manager')) {
require 'legacy/myhome-core.php';
return;
}
if (!class_exists(Elementor\Plugin::class)) {
return;
}
if (PHP_VERSION_ID < 80100) {
require_once plugin_dir_path(__FILE__) . 'inc/php-version-notice.php';
return;
}
const MYHOME_CORE_VERSION = '4.0.7';
define('MYHOME_URL', plugin_dir_url(__FILE__));
define('MYHOME_PATH', plugin_dir_path(__FILE__));
require 'vendor/autoload.php';
require 'framework/framework.php';
require 'config/load.php';
add_action('init', static function () {
load_plugin_textdomain('myhome-core', false, basename(__DIR__) . '/languages/');
});
add_action('plugins_loaded', static function () {
if (!class_exists(Tangibledesign\Framework\Core\App::class)) {
return;
}
Tangibledesign\Framework\Core\App::getInstance()->init();
}, 9999);