Additional NoteHere, $responceData would be an array because you set the second parameter to true:$responceData = json_decode(wp_remote_retrieve_body( $response ), TRUE );因此,如果您希望 $ responceData 是 object ,则只需省略第二个参数:So if you wanted $responceData to be an object, then simply omit the second parameter:$responceData = json_decode(wp_remote_retrieve_body( $response ) );//$responceData = json_decode(wp_remote_retrieve_body( $response ), false ); // equivalent to above有关 json_decode()的信息,请参见 PHP手册.以获得更多详细信息.See the PHP manual for json_decode() for further details. 这篇关于wp_remote_post响应主体受到保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-19 09:37