Title: Disable REST API &#8211; Bug
Last modified: May 12, 2017

---

# Disable REST API – Bug

 *  Resolved [integritive](https://wordpress.org/support/users/integritive/)
 * (@integritive)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/disable-rest-api-bug/)
 * I’ve been running ADA compliance scans on a few of my sites and this keeps coming
   up. They keep flagging a broken link in the <head>. This one in particular.. “
   <link rel=”htt://theeventscalendar.com” href=”[https://www.hometrustbanking.com/wp-json/tribe/events/v1/”>&#8221](https://www.hometrustbanking.com/wp-json/tribe/events/v1/”>&#8221);.
   First off, there’s a typo in the “rel” attribute. You have “htt://” which should
   be “[http://&#8221](http://&#8221);. That’s not the link these scans are fussing
   about though.
 * The issue is with the href attribute and the url request returning a 404 status.
   We’re not using the REST API on any of our sites so we end up with this link 
   in the head of every page that returns a 404 json response.
 * Is there a hook we could drop in our functions file to dequeue this reference
   while this bug is addressed? Ideally we would have an option within the tribe
   settings to simply disable the rest api. There’s no reason to load this resource
   if you’re not utilizing the API. Disabling it would also prevent returning a 
   404 response on every page.
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Courtney Robertson](https://wordpress.org/support/users/courane01/)
 * (@courane01)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/disable-rest-api-bug/#post-9134139)
 * I’m sorry that is happening on your site. I will pass along your findings about
   the typos immediately to our developers.
 * The Rest-API has been running in your site since WordPress was upgraded to 4.4.
   I’d suggest going through [http://www.wpbeginner.com/wp-tutorials/how-to-disable-json-rest-api-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-disable-json-rest-api-in-wordpress/)
   to disable it to fit your unique needs.
 * Please let me know if that works for you.
 * Thanks
    Courtney 🙂

Viewing 1 replies (of 1 total)

The topic ‘Disable REST API – Bug’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Courtney Robertson](https://wordpress.org/support/users/courane01/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/disable-rest-api-bug/#post-9134139)
 * Status: resolved