$20 GRAYBYTE WORDPRESS FILE MANAGER $95

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/hpgt.org/wp-content/plugins/elementor/modules/pro-install/

HOME
Current File : /home/bravrvjk/hpgt.org/wp-content/plugins/elementor/modules/pro-install//module.php
<?php
namespace Elementor\Modules\ProInstall;

use Elementor\Core\Common\Modules\Connect\Module as ConnectModule;
use Elementor\Core\Base\Module as BaseModule;
use Elementor\Plugin;
use Elementor\Utils;
use Elementor\Modules\EditorOne\Classes\Menu_Data_Provider;

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/editor-one/menu/excluded_level3_slugs', function ( array $excluded_slugs ): array {
			$excluded_slugs[] = 'elementor-connect';
			return $excluded_slugs;
		} );

		add_action( 'elementor/editor-one/menu/register', function( Menu_Data_Provider $menu_data_provider ) {
			$menu_data_provider->register_menu(
				new Editor_One_Connect_Account_Menu_Item(
					$this->get_connect_app(),
					$this->get_pro_install_page_assets()
				)
			);
		} );
	}

	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' ) );
	}

	private function get_pro_install_page_assets(): array {
		return [
			'elementor-pro-install-events',
			$this->get_js_assets_url( 'pro-install-events' ),
			[ 'elementor-common' ],
			ELEMENTOR_VERSION,
			true,
		];
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
connect-page-renderer.php
5.68 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
connect.php
0.864 KB
15 Sep 2025 2.10 PM
bravrvjk / bravrvjk
0644
editor-one-connect-account-menu-item.php
1.458 KB
20 Jan 2026 1.22 PM
bravrvjk / bravrvjk
0644
module.php
2.449 KB
30 Mar 2026 1.49 PM
bravrvjk / bravrvjk
0644
plugin-installer.php
2.293 KB
15 Sep 2025 2.10 PM
bravrvjk / bravrvjk
0644
pro-install-menu-item.php
1.006 KB
22 Dec 2025 5.25 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF