How to disable default routes of WP REST API in WordPress?

Posted by Prem Tiwari | Updated on

Want to disable default routes of WP REST API in WordPress? This question has already accepted answer. But if anybody find this useful. We can easily remove default routes. Add following code in your theme’s (child theme’s if any) functions.php or in any custom plugin


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers