parent = $parent; } public function nonceAction(): string { return 'abj404_clearSpellingCache'; } public function nonceArg(): string { return '_wpnonce'; } public function useCheckAdminReferer(): bool { return true; } public function handle(string $action, string &$sub): string { $this->parent->getContentRepo()->deleteSpellingCache(); return __('Spelling cache cleared successfully.', '404-solution'); } }