client = $client; $this->request = new HttpRequest; } public function active(): bool { return is_admin() && $this->client->main->auth()->hasAccess() && $this->request->get('action') === 'elementor'; } public function root(): void { add_action('elementor/editor/wp_head', [$this->client, 'appRoot'], 100); } public function setup(): void { add_action('elementor/editor/after_enqueue_scripts', [$this->client, 'enqueue_client_assets'], 100); add_action('elementor/editor/after_enqueue_scripts', [$this->client, 'registerPageProps'], 101); } }