How to use permission_callback with remote application passwords
-
Maybe I’m overlooking something, or thinking about this in the wrong way. But I installed the 5.6 beta and created an application pw that I intend to use with the REST API.
So let’s say you want to use it with WP_REST_Server::CREATABLE and make sure only request from users that have a valid application pw are allowed to create new posts for a specific custom post type.
What would I pass to the permission_callback, to see if the passed username:pw for the application are valid?
I can’t find any documentation on this.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to use permission_callback with remote application passwords’ is closed to new replies.