WP media REST endpoint stops working
-
Hi,
When we initially tested WP REST API Controller, it worked. However, after a few months we returned to find it not working without us having changed it’s configuration that we’re aware of. We’re unsure if we updated the plugin in that time. We’re currently using version 2.1.0 with WordPress 6.0.1 and PHP 8. When we enable the plugin, the standard media REST endpoint for WordPress breaks. It took us some time to discover the plugin was overriding the media endpoint with an “attachments” endpoint. Once we renamed the attachments endpoint to media and activated the related meta keys, the media endpoint started working as expected.
Another issue we ran into related to this was users were reportedly unable to add feature images to posts while the media endpoint was set to attachments. Once we changed the endpoint to “media”, users were able to upload feature images again.
We’re posting this in case others run into a similar issue or the plugin developers want to add an FAQ or tweak the plugin to use media instead of attachments for the endpoint.
Thanks!
- The topic ‘WP media REST endpoint stops working’ is closed to new replies.