| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/elementor-pro-off/license/data/endpoints/ |
Upload File : |
<?php
namespace ElementorPro\License\Data\Endpoints;
use ElementorPro\Core\Data\Endpoints\Base;
use ElementorPro\Core\Data\Interfaces\Endpoint;
use ElementorPro\License\API;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Get_License_Status extends Base implements Endpoint {
public function get_name(): string {
return 'get-license-status';
}
public function get_route(): string {
return 'get-license-status';
}
protected function register() {
register_rest_route(
$this->controller->get_namespace(),
'/' . $this->controller->get_name() . '/' . $this->get_route(),
[
[
'methods' => 'GET',
'callback' => [ $this, 'get_status' ],
'permission_callback' => [ $this, 'permission_callback' ],
],
]
);
}
public function get_status( $request ) {
return new \WP_REST_Response(
[
'isExpired' => API::is_license_expired(),
],
200
);
}
public function permission_callback( $request ) {
return is_user_logged_in();
}
}