available = $available ?? static fn (): bool => defined('PODS_VERSION'); } public function boot(): void { add_action(CompatibilityTab::LOAD_ACTION, [$this, 'removeOrphans']); } /** * lit_mcp_compat_profile_load('pods'), before any output: deletes probe entries a dead check left behind * (PodsProbe::removeOrphans()). A GET without nonce on purpose: only the plugin's own leftovers, idempotent. */ public function removeOrphans(string $profileId): void { if ($profileId === 'pods' && $this->isAvailable() && current_user_can('manage_options')) { PodsProbe::removeOrphans(); } } public function id(): string { return 'pods'; } public function label(): string { return 'Pods'; } public function isAvailable(): bool { return ($this->available)(); } public function abilities(): array { return []; } public function compatibilities(): array { return [PodsCompatibility::profile()]; } }