我使用curl php库从给定的公共概要文件中获取instagram json提要。我想使用wp_remote_get()
因为在我用于此项目的主机上,我无法使用curl来请求json提要,所以我注意到我的实际插件脚本在localhost、netsons和aruba上运行良好,但在tophost上运行不好。
我不知道wordpress中包含的函数是否也会做同样的事情,所以我的问题是,willwp_remote_get()
如果我提供instagram url,请将json提要返回给我?请参见上面的示例:
$feed = wp_remote_get(\'https://www.instagram.com/profile/?__a=1\');