WP REST API GET Requests require authentication

Question

Is there a way to require authentication for WP REST API GET Requests?

The people I was researching always added a command if the is_user_logged_in(). But it closes these external queries altogether. My purpose is that someone who owns a token with oAuth can request a GET.

0
, , Pealm Works 4 years 2020-03-09T23:50:41-05:00 0 Answers 118 views 0

Leave an answer

Browse
Browse