Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save halgatewood/09d3653cd2d092802e8fe8be4b54b71c to your computer and use it in GitHub Desktop.
Save halgatewood/09d3653cd2d092802e8fe8be4b54b71c to your computer and use it in GitHub Desktop.
Translating the Days of the Week through a WordPress filter.
function awesome_weather_spanish_days_of_week()
{
return array('Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa');
}
add_filter('awesome_weather_days_of_week', 'awesome_weather_spanish_days_of_week');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment