https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /var/www/html/wp-content/plugins/elementor/modules/ai/site-planner-connect/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/wp-content/plugins/elementor/modules/ai/site-planner-connect/wp-rest-api.php
<?php

namespace Elementor\Modules\Ai\SitePlannerConnect;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Just a simple rest api to validate new Site Planner Connect feature exists.
 */
class Wp_Rest_Api {

	public function register(): void {
		register_rest_route('elementor-ai/v1', 'permissions', [
			[
				'methods' => \WP_REST_Server::READABLE,
				'permission_callback' => function () {
					return current_user_can( 'manage_options' );
				},
				'callback' => function () {
					try {
						wp_send_json_success( [
							'site_planner_connect' => true,
						] );
					} catch ( \Exception $e ) {
						wp_send_json_error( [
							'message' => $e->getMessage(),
						] );
					}
				},
			],
		] );
	}
}

https://t.me/RX1948 - 2025