If you’re read any of my previous posts on retrieving remote files, then you know that old habits die hard as I often use file_get_contents rather than wp_remote_get.
So, as one does when blogging, I thought it would be helpful to share a simple example of how to use wp_remote_get in your day-to-day work.

The post below is merely a snippet of how to use it. That is, it won’t show how to designed, say, a class around it or a UI that allows users to upload a file. But this should be enough to get things started.
And I’ll include how to take the API documentation around it and understand how to leverage it when using a function like this.



