WordPress REST API register_rest_route give a 500 error
Revised answer To other readers, another issue was the OP used the wrong route. So make sure to make the API request to the correct route, which is a combination of the first two parameters for register_rest_route() (namespace + route base). So with register_rest_route( ‘uheme/v1’, ‘/menu’ ), the route is uheme/v1/menu. Additionally: With permalinks enabled, … Read more