![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/ |
<?php namespace ElementorPro\Core\App\Modules\SiteEditor\Data; use ElementorPro\Plugin; use Elementor\Data\Base\Controller as Controller_Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Controller extends Controller_Base { public function get_name() { return 'site-editor'; } public function register_endpoints() { $this->register_endpoint( Endpoints\Templates::class ); $this->register_endpoint( Endpoints\Conditions_Config::class ); $this->register_endpoint( Endpoints\Templates_Conditions::class ); $this->register_endpoint( Endpoints\Templates_Conditions_Conflicts::class ); } public function get_permission_callback( $request ) { return Plugin::elementor()->kits_manager->get_active_kit()->is_editable_by_current_user(); } }