chuhaystr
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Limit all endpoints for not logged in usersIn my wp site I installed and activated JSON Basic Authentication.
Then I try to make request from third-party site:$headers = array(
‘Authorization’ => ‘Basic ‘ . base64_encode( ‘login’ . ‘:’ . ‘password’ )
);
$url = ‘http://mysite.com/wp-json/wp/v2/posts’;$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
echo $response;In response I receive
{“code”:”restx_logged_out”,”message”:”Sorry, you must be logged in to make a request.”,”data”:{“status”:401}}So, what’s wrong?
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Limit all endpoints for not logged in usersAs I understand this hook is only suitable for in-browser authentication. Or it also works using Basic or Oauth authentication?
Hi, Daniel. I’m faced with the same problem, too.
Can you provide a short manual/tutorial on this subject?Forum: Plugins
In reply to: [Simple Staff List] One shortcode shows the list twiceGreat! That’s cool! It works for me , too!
Forum: Plugins
In reply to: Duplicate products in wp ecommerceHi there
I see that problem is solved now. How did you solve it?
It seems I have the same one.