Created
November 8, 2017 03:38
Star
You must be signed in to star a gist
Converting mps to knots with the Awesome Weather Widget Free Plugin
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( $data, $speed, $direction ) | |
{ | |
$data['speed'] = round($data['speed'] * 1.94384); | |
$data['text'] = " knots"; | |
return $data; | |
} | |
add_filter('awesome_weather_wind_speed', 'hg_awesome_weather_wind_speed', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment