Conclussion

When you need to hook into an API or retrieve data from a URL, wp_remote_get() is the function you need. Just remember that you’ll also have to take a few more steps in order to get to the actual data you want.

If you have any questions or feedback on this post, please use the comments below to start a discussion.

Is this secure enough? I mean, do I need to do anything to make sure nobody can exploit it? I’m the people who wrote it made some measures, but I want to know if there’s anything I should add just in case.

For anyone using this it’s highly recommended (a requirement in my opinion) to use the Transients API to cache the results of wp_remote_get(). This provide a much faster experience, and is a must do for performance.

Is this secure enough? I mean, do I need to do anything to make sure nobody can exploit it? Im the people who wrote it made some measures, but I want to know if theres anything I should add just in case.