I'm using a translation plugin in WordPress which adds the language code as a slug for all internal links like this: domainname.com/en This also results in some of my plugins endpoints being unauthorized for access since it also adds the language slug before the namespace: en/plugin-name/v1 Is there a way to force the links to force remove this language slug before the namespace in endpoints? Or a way to register all links with the slug as a rest route? I have been looking into register_rest_route, but this will mean I will have to register all possible links for all plugins. I hope there is an easier approach to this.