
Это мой код:
Код: Выделить всё
include "auth.php";
$id= $_GET["id"]; // order_id
$result = $woocommerce->get('orders/'.$id);
echo json_encode(array("result"=>$result));
Подробнее здесь: https://stackoverflow.com/questions/529 ... store-name

Код: Выделить всё
include "auth.php";
$id= $_GET["id"]; // order_id
$result = $woocommerce->get('orders/'.$id);
echo json_encode(array("result"=>$result));