client = $client; $this->request = new HttpRequest; } public function active(): bool { $page = $this->request->get('page', true); return is_admin() && $this->client->main->auth()->hasAccess() && ! in_array($page, [$this->client->main::SETTINGS_PAGE]); } public function root(): void { add_action('in_admin_header', [$this->client, 'appRoot'], 100); } }