stephenharris / event-organiser-rest-api

Integration for Event Organiser with WP REST API.
2 stars 4 forks source link

/wp-json/wp/v2/events-categories doesn't work #4

Open leon-82 opened 5 years ago

leon-82 commented 5 years ago

When I try to the following rest route I got an 'rest_no_route' error message: /wp-json/wp/v2/events-categories

Does some of you know how to fix this?

Other routes like /events and /event-tags are working.

Thanks in advance.

pnoisette commented 3 years ago

Hello,

i can't help to fix this,sorry,

but i can tell that : the bug is real, reproductible, and also that : the metabox of event-categories disappear of the editing page of events.

That second point is quite problematic, because if you want to create a new event with an event-category, you must desactive the plugin.

Thank's a lot for your help.

riijon commented 3 years ago

The solution is here. https://wp-event-organiser.com/forums/topic/rest-api/#post-23398

There’s a typo here: https://github.com/stephenharris/event-organiser-rest-api/blob/a6cfec8cb5e883d003e1951b80228ca9c9d4a143/event-organiser-rest-api.php#L52 The hook should be eventorganiser_register_taxonomy_event-category not eventorganiser_register_taxonomy_event-categories. I’ll update that shortly but you can just apply the change yourself in the mean time.

pnoisette commented 3 years ago

Hello and thank's a lot,

i came to post your solution, and it's already done,

fantastic,

thank's a lot again !

pnoisette commented 3 years ago

Hello,

and thank's a lot, it's great, really.

I wish you the best.

Le mer. 30 sept. 2020 à 06:45, RIKU TAKENAKA notifications@github.com a écrit :

The solution is here. https://wp-event-organiser.com/forums/topic/rest-api/#post-23398

There’s a typo here: https://github.com/stephenharris/event-organiser-rest-api/blob/a6cfec8cb5e883d003e1951b80228ca9c9d4a143/event-organiser-rest-api.php#L52 The hook should be eventorganiser_register_taxonomy_event-category not eventorganiser_register_taxonomy_event-categories. I’ll update that shortly but you can just apply the change yourself in the mean time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stephenharris/event-organiser-rest-api/issues/4#issuecomment-701153397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAWM6TRIIXXRRQ54ZIQNF3SIKZXJANCNFSM4HEL6JBA .