有没有办法在API响应上转换订单状态
“https://test.com/wp-json/wc/v3/orders “.
{
“status”: “processing”,
}谢谢
发布于 2020-01-17 18:31:48
为了在PHP中使用它,我们需要将它转换为PHP能够理解的格式。为此,我们可以使用json_decode()函数。
$json = '{"key":"value"}';
// Translate into an object
$obj = json_decode( $json );
// Translate into an array
$array = json_decode( $json, true );https://stackoverflow.com/questions/59785444
复制相似问题