Skip to content

Instantly share code, notes, and snippets.

@woogist
Created June 12, 2014 10:00
Show Gist options
  • Select an option

  • Save woogist/02f460967aa230641257 to your computer and use it in GitHub Desktop.

Select an option

Save woogist/02f460967aa230641257 to your computer and use it in GitHub Desktop.
WooCommerce Bookings: date format
<?php
// Bookings Date Format Tweak
add_filter( 'woocommerce_bookings_date_format' , 'woocommerce_bookings_custom_date_format' );
/**
* woocommerce_bookings_custom_date_format
*
* @access public
* @since 1.0
* @return void
*/
function woocommerce_bookings_custom_date_format() {
return 'j M Y'; // your custom format here, see http://fr2.php.net/manual/en/function.date.php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment