json_no_route when querying taxonomy with WP-API

To get a taxonomy, using WP-API, you should make a request to http://example.com/wp-json/taxonomies/category/ All is well, until you have a taxonomy with a dash(‘-‘) in its name – in my case, the taxonomy is called ‘event-categories’ – the default event taxonomy in the Events Manager plugin. So, a request to http://example.com/wp-json/taxonomies/event-categories/ responds with a “No […]