<?php
namespace ElementorPro\License;
use ElementorOne\Connect\Facade;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class One {
/**
* Check if Elementor One is connected.
*
* @return bool
*/
public static function is_connected(): bool {
if ( ! class_exists( Facade::class ) ) {
return false;
}
$facade = Facade::get( 'elementor-pro' );
return $facade ? $facade->utils()->is_connected() : false;
}
/**
* Get the subscription display name for Elementor One.
*
* @return string
*/
public static function get_subscription_display_name(): string {
return 'Elementor One';
}
/**
* Get the manage subscription URL when One is connected.
*
* @return string
*/
public static function get_manage_subscription_url(): string {
return admin_url( 'admin.php?page=elementor-home#/home/tool-manager' );
}
/**
* Get the URL mismatch fix modal URL when One is connected.
*
* @return string
*/
public static function get_url_mismatch_url(): string {
return admin_url( 'admin.php?page=elementor-home#/home/url-mismatch' );
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| assets/ | 2026-07-21 14:28 | 1.59 KB | 76129f60960:kunden | dxwrx-r--r | |
| data/ | 2026-07-21 14:28 | 2.52 KB | 76129f60960:kunden | dxwrx-r--r | |
| editor-one-menu-items/ | 2026-07-21 14:28 | 3.21 KB | 76129f60960:kunden | dxwrx-r--r | |
| notices/ | 2026-07-21 14:28 | 2.38 KB | 76129f60960:kunden | dxwrx-r--r | |
| admin.php | 2026-07-21 14:28 | 32.37 KB | 76129f60960:kunden | -xw-x----- | |
| api.php | 2026-07-21 14:28 | 18.97 KB | 76129f60960:kunden | -xw-x----- | |
| one.php | 2026-07-21 14:28 | 1.08 KB | 76129f60960:kunden | -xw-x----- | |
| updater.php | 2026-07-21 14:28 | 7.13 KB | 76129f60960:kunden | -xw-x----- | |