How to Disable WordPress REST API (2 Expert-Tested Ways)
You don’t always need WordPress REST API. In fact, sometimes you’re better off without it. This post is for people who want to shut it down fast. Maybe you’re worried about someone poking around your site’s data. Maybe your server’s feeling the load. Maybe you just want one less thing “exposed.” Whatever your reason, I’ll show you how to disable the REST API cleanly and completely.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed