Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Last active May 18, 2017 08:36
Show Gist options
  • Save rynaldos-zz/7f8b60cef9622d23195745873dac54c9 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/7f8b60cef9622d23195745873dac54c9 to your computer and use it in GitHub Desktop.
[WooCommerce] Change datepicker to show Su - Sa
add_filter( 'wp_footer' , 'rs_change_datepicker_cal', 99 );
function rs_change_datepicker_cal() {
?>
<script>
jQuery(function($){
$.datepicker.regional['en-US'] = {
firstDay: 0
};
$.datepicker.setDefaults($.datepicker.regional['en-US']);
});
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment