Function breakdown: rest_ensure_response
When making your own routes with the WordPress REST API, you have to return a valid REST object....
Tags: wordpress, rest, api, javascript