Title: Retrieving data from plugin
Last modified: August 21, 2016

---

# Retrieving data from plugin

 *  [Rootside](https://wordpress.org/support/users/rootside/)
 * (@rootside)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/retrieving-data-from-plugin/)
 * I’m planning to add classes to the body element based on temperature, wind speed
   and wind direction.
 * What’s the best/easiest way to retrieve this data from the plugin in order to
   work with it, i.e. in functions.php ?
 * Thanks
 * [http://wordpress.org/plugins/awesome-weather/](http://wordpress.org/plugins/awesome-weather/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/retrieving-data-from-plugin/#post-4365837)
 * Currently not so easy. If you are familiar with PHP I would look at the source
   code and search for ‘wp_remote_get’ this shows how I get the data from OpenWeatherMaps.
   You could do the same thing in your functions.php and set body tags based on 
   the data. Take some time to tinker with it and find out what you need.
 *  Thread Starter [Rootside](https://wordpress.org/support/users/rootside/)
 * (@rootside)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/retrieving-data-from-plugin/#post-4365869)
 * Ah, thanks.
 * I was hoping to be able to somehow hook into the shortcode function (or the shortcode’s
   callback function) and retrieve values from there – wouldn’t that be available
   globally?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Retrieving data from plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/awesome-weather_ad7c7d.svg)
 * [Awesome Weather Widget](https://wordpress.org/plugins/awesome-weather/)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-weather/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rootside](https://wordpress.org/support/users/rootside/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/retrieving-data-from-plugin/#post-4365869)
 * Status: not resolved