Custom Endpoints not working
You’re using the wrong route. The first two arguments of register_rest_route() ar the namespace, and the route. The URL to a REST API endpoint is: (your domain) + ‘/wp-json/’ + (namespace) + “https://wordpress.stackexchange.com/” + (route) So the full URL to your endpoint is: http://domain.com/wp-json/knpv-get/get-submissions But you’re attempting to view: http://domain.com/wp-json/knpv-get Which won’t return the response … Read more