I have a wordpress headless site and basically I wanna hide all the links of the WordPress Admin to be not visible to the public. I was able to do some forwarding for the api (graphql) and cdn to make sure the wordpress admin links do not appear on the frontend.
But the last thing that I am trying to figure out is to replace the link with my frontend link (since I have already implemented the domain forwarding, so essentially https://example.com/wp-json
- frontend, will have the same response as https://admin.example.com/wp-json
- admin)
I couldn't have the REST API disabled and just have it accessible for admin because I use REST API to collect contact form 7 submissions from the decoupled frontend.
The link is often found under _links
-> self
-> href
in the REST api