Closed aydun closed 2 years ago
See https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#permissions-callback
I think this probably ought to defer to a method of the endpoint class, but since there's no definition in the interface yet, will merge as is.
See https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#permissions-callback