Last active
May 9, 2017 15:01
-
-
Save halgatewood/20f16fb9d3817edf2ed918a48013850e to your computer and use it in GitHub Desktop.
Awesome Weather Wind Speed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hg_awesome_weather_wind_speed( $wind_speed_ms ) | |
{ | |
return number_format($wind_speed_ms / 0.44704, 0); | |
} | |
add_filter('awesome_weather_wind_speed', 'hg_awesome_weather_wind_speed'); | |
function hg_awesome_weather_wind_speed_text( ) | |
{ | |
return "mph"; | |
} | |
add_filter('awesome_weather_wind_speed_text', 'hg_awesome_weather_wind_speed_text'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment