Disable JSON WP Rest API

As new REST API was enabled by default in WordPress so with this peoples can access the content of your website which can include Posts, Pages, Users information etc.

With this snippet you can disable the WP Rest API v2 and after that no one can access to the content with Rest API endpoints.

Leave a Reply