Use wp_remote_get to get JSON instagram feed from public profile


I’m using the curl php library to get the instagram json feed from a given public profile. I want to use wp_remote_get() because on the host I’m using for this project, I don’t have the ability to use curl to request the json feed, I’ve noticed that my actual plugin script will work well on localhost, on netsons and aruba but not on tophost. I don’t know if the function included in wordpress will do the same thing so my question is, will wp_remote_get() return to me the json feed if I provide the instagram url? See the example above:

$feed = wp_remote_get('');

, , sialfa 3 years 2020-04-01T12:52:42-05:00 0 Answers 109 views 0

Leave an answer